Path: blob/master/runtime/ddr/algorithm_versions.c
5991 views
/*******************************************************************************1* Copyright (c) 1991, 2021 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* 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-exception20*******************************************************************************/2122#include "j9ddr.h"23#include "j9cfg.h"2425/* @ddr_namespace: map_to_type=DDRAlgorithmVersions */2627#define VM_MAJOR_VERSION EsVersionMajor28#define VM_MINOR_VERSION EsVersionMinor29#define VM_LINE_NUMBER_TABLE_VERSION 130#define VM_LOCAL_VARIABLE_TABLE_VERSION 131#define VM_CAN_ACCESS_LOCALS_VERSION 132#define ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION 233#define VM_HASHTABLE_VERSION 134#define ALG_VM_J9CLASS_VERSION 135#define ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION 136#define ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION 137#define ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION 138#define J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION 139#define VM_STACK_GROW_VERSION 140#define ALG_ROM_HELP_VERSION 141#define FOUR_BYTE_OFFSETS_VERSION 142#define ALG_VM_VTABLE_VERSION 143#define ALG_VM_ITABLE_VERSION 144#define ALG_VM_BYTECODE_VERSION 145#define ALG_OBJECT_MONITOR_VERSION 146#if defined(OMR_GC_COMPRESSED_POINTERS) && defined(OMR_GC_FULL_POINTERS)47#define MIXED_REFERENCE_MODE 148#endif /* defined(OMR_GC_COMPRESSED_POINTERS) && defined(OMR_GC_FULL_POINTERS) */49#define ALG_VM_JAVA_LANG_STRING_VERSION 15051/*52* All constants in the table below must also be declared as macros above53* so they will be included in the blob created by OMR's ddrgen tools.54*/55J9DDRConstantTableBegin(DDRAlgorithmVersions)56J9DDRConstantTableEntryWithValue("VM_MAJOR_VERSION", VM_MAJOR_VERSION)57J9DDRConstantTableEntryWithValue("VM_MINOR_VERSION", VM_MINOR_VERSION)58J9DDRConstantTableEntryWithValue("VM_LINE_NUMBER_TABLE_VERSION", VM_LINE_NUMBER_TABLE_VERSION)59J9DDRConstantTableEntryWithValue("VM_LOCAL_VARIABLE_TABLE_VERSION", VM_LOCAL_VARIABLE_TABLE_VERSION)60J9DDRConstantTableEntryWithValue("VM_CAN_ACCESS_LOCALS_VERSION", VM_CAN_ACCESS_LOCALS_VERSION)61J9DDRConstantTableEntryWithValue("ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION", ALG_GC_ARRAYLET_OBJECT_MODEL_VERSION)62J9DDRConstantTableEntryWithValue("VM_HASHTABLE_VERSION", VM_HASHTABLE_VERSION)63J9DDRConstantTableEntryWithValue("ALG_VM_J9CLASS_VERSION", ALG_VM_J9CLASS_VERSION)64J9DDRConstantTableEntryWithValue("ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION", ALG_GC_OBJECT_HEAP_ITERATOR_ADDRESS_ORDERED_LIST_VERSION)65J9DDRConstantTableEntryWithValue("ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION", ALG_GC_OBJECT_HEAP_ITERATOR_SEGREGATED_ORDERED_LIST_VERSION)66J9DDRConstantTableEntryWithValue("ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION", ALG_GC_SCAVENGER_FORWARDED_HEADER_VERSION)67J9DDRConstantTableEntryWithValue("J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION", J9_OBJECT_FIELD_OFFSET_ITERATOR_VERSION)68J9DDRConstantTableEntryWithValue("VM_STACK_GROW_VERSION", VM_STACK_GROW_VERSION)69J9DDRConstantTableEntryWithValue("ALG_ROM_HELP_VERSION", ALG_ROM_HELP_VERSION)70J9DDRConstantTableEntryWithValue("FOUR_BYTE_OFFSETS_VERSION", FOUR_BYTE_OFFSETS_VERSION)71J9DDRConstantTableEntryWithValue("ALG_VM_VTABLE_VERSION", ALG_VM_VTABLE_VERSION)72J9DDRConstantTableEntryWithValue("ALG_VM_ITABLE_VERSION", ALG_VM_ITABLE_VERSION)73J9DDRConstantTableEntryWithValue("ALG_VM_BYTECODE_VERSION", ALG_VM_BYTECODE_VERSION)74J9DDRConstantTableEntryWithValue("ALG_OBJECT_MONITOR_VERSION", ALG_OBJECT_MONITOR_VERSION)75#if defined(MIXED_REFERENCE_MODE)76J9DDRConstantTableEntryWithValue("MIXED_REFERENCE_MODE", MIXED_REFERENCE_MODE)77#endif /* defined(MIXED_REFERENCE_MODE) */78J9DDRConstantTableEntryWithValue("ALG_VM_JAVA_LANG_STRING_VERSION", ALG_VM_JAVA_LANG_STRING_VERSION)79J9DDRConstantTableEnd8081J9DDRStructTableBegin(AlgorithmVersions)82J9DDREmptyStruct(DDRAlgorithmVersions, NULL)83J9DDRStructTableEnd8485const J9DDRStructDefinition* getAlgorithmVersionStructTable()86{87return J9DDR_AlgorithmVersions_structs;88}899091