Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/runtime/ddr/algorithm_versions.c
5991 views
1
/*******************************************************************************
2
* Copyright (c) 1991, 2021 IBM Corp. and others
3
*
4
* This program and the accompanying materials are made available under
5
* the terms of the Eclipse Public License 2.0 which accompanies this
6
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
* or the Apache License, Version 2.0 which accompanies this distribution and
8
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9
*
10
* This Source Code may also be made available under the following
11
* Secondary Licenses when the conditions for such availability set
12
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
* General Public License, version 2 with the GNU Classpath
14
* Exception [1] and GNU General Public License, version 2 with the
15
* OpenJDK Assembly Exception [2].
16
*
17
* [1] https://www.gnu.org/software/classpath/license.html
18
* [2] http://openjdk.java.net/legal/assembly-exception.html
19
*
20
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
*******************************************************************************/
22
23
#include "j9ddr.h"
24
#include "j9cfg.h"
25
26
/* @ddr_namespace: map_to_type=DDRAlgorithmVersions */
27
28
#define VM_MAJOR_VERSION EsVersionMajor
29
#define VM_MINOR_VERSION EsVersionMinor
30
#define VM_LINE_NUMBER_TABLE_VERSION 1
31
#define VM_LOCAL_VARIABLE_TABLE_VERSION 1
32
#define VM_CAN_ACCESS_LOCALS_VERSION 1
33
#define ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION 2
34
#define VM_HASHTABLE_VERSION 1
35
#define ALG_VM_J9CLASS_VERSION 1
36
#define ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION 1
37
#define ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION 1
38
#define ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION 1
39
#define J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION 1
40
#define VM_STACK_GROW_VERSION 1
41
#define ALG_ROM_HELP_VERSION 1
42
#define FOUR_BYTE_OFFSETS_VERSION 1
43
#define ALG_VM_VTABLE_VERSION 1
44
#define ALG_VM_ITABLE_VERSION 1
45
#define ALG_VM_BYTECODE_VERSION 1
46
#define ALG_OBJECT_MONITOR_VERSION 1
47
#if defined(OMR_GC_COMPRESSED_POINTERS) && defined(OMR_GC_FULL_POINTERS)
48
#define MIXED_REFERENCE_MODE 1
49
#endif /* defined(OMR_GC_COMPRESSED_POINTERS) && defined(OMR_GC_FULL_POINTERS) */
50
#define ALG_VM_JAVA_LANG_STRING_VERSION 1
51
52
/*
53
* All constants in the table below must also be declared as macros above
54
* so they will be included in the blob created by OMR's ddrgen tools.
55
*/
56
J9DDRConstantTableBegin(DDRAlgorithmVersions)
57
J9DDRConstantTableEntryWithValue("VM_MAJOR_VERSION", VM_MAJOR_VERSION)
58
J9DDRConstantTableEntryWithValue("VM_MINOR_VERSION", VM_MINOR_VERSION)
59
J9DDRConstantTableEntryWithValue("VM_LINE_NUMBER_TABLE_VERSION", VM_LINE_NUMBER_TABLE_VERSION)
60
J9DDRConstantTableEntryWithValue("VM_LOCAL_VARIABLE_TABLE_VERSION", VM_LOCAL_VARIABLE_TABLE_VERSION)
61
J9DDRConstantTableEntryWithValue("VM_CAN_ACCESS_LOCALS_VERSION", VM_CAN_ACCESS_LOCALS_VERSION)
62
J9DDRConstantTableEntryWithValue("ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION", ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION)
63
J9DDRConstantTableEntryWithValue("VM_HASHTABLE_VERSION", VM_HASHTABLE_VERSION)
64
J9DDRConstantTableEntryWithValue("ALG_VM_J9CLASS_VERSION", ALG_VM_J9CLASS_VERSION)
65
J9DDRConstantTableEntryWithValue("ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION", ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION)
66
J9DDRConstantTableEntryWithValue("ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION", ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION)
67
J9DDRConstantTableEntryWithValue("ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION", ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION)
68
J9DDRConstantTableEntryWithValue("J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION", J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION)
69
J9DDRConstantTableEntryWithValue("VM_STACK_GROW_VERSION", VM_STACK_GROW_VERSION)
70
J9DDRConstantTableEntryWithValue("ALG_ROM_HELP_VERSION", ALG_ROM_HELP_VERSION)
71
J9DDRConstantTableEntryWithValue("FOUR_BYTE_OFFSETS_VERSION", FOUR_BYTE_OFFSETS_VERSION)
72
J9DDRConstantTableEntryWithValue("ALG_VM_VTABLE_VERSION", ALG_VM_VTABLE_VERSION)
73
J9DDRConstantTableEntryWithValue("ALG_VM_ITABLE_VERSION", ALG_VM_ITABLE_VERSION)
74
J9DDRConstantTableEntryWithValue("ALG_VM_BYTECODE_VERSION", ALG_VM_BYTECODE_VERSION)
75
J9DDRConstantTableEntryWithValue("ALG_OBJECT_MONITOR_VERSION", ALG_OBJECT_MONITOR_VERSION)
76
#if defined(MIXED_REFERENCE_MODE)
77
J9DDRConstantTableEntryWithValue("MIXED_REFERENCE_MODE", MIXED_REFERENCE_MODE)
78
#endif /* defined(MIXED_REFERENCE_MODE) */
79
J9DDRConstantTableEntryWithValue("ALG_VM_JAVA_LANG_STRING_VERSION", ALG_VM_JAVA_LANG_STRING_VERSION)
80
J9DDRConstantTableEnd
81
82
J9DDRStructTableBegin(AlgorithmVersions)
83
J9DDREmptyStruct(DDRAlgorithmVersions, NULL)
84
J9DDRStructTableEnd
85
86
const J9DDRStructDefinition* getAlgorithmVersionStructTable()
87
{
88
return J9DDR_AlgorithmVersions_structs;
89
}
90
91