annotate src/share/vm/runtime/vmStructs.cpp @ 4841:6bd680e9ea35

8003421: NPG: Move oops out of InstanceKlass into mirror Summary: Inject protection_domain, signers, init_lock into java_lang_Class Reviewed-by: stefank, dholmes, sla
author coleenp
date Wed, 22 May 2013 14:37:49 -0400
parents e484fe2abebd
children 7b772f9e0365
rev   line source
duke@0 1 /*
coleenp@4214 2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
duke@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 *
duke@0 5 * This code is free software; you can redistribute it and/or modify it
duke@0 6 * under the terms of the GNU General Public License version 2 only, as
duke@0 7 * published by the Free Software Foundation.
duke@0 8 *
duke@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 * accompanied this code).
duke@0 14 *
duke@0 15 * You should have received a copy of the GNU General Public License version
duke@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 *
trims@1472 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 20 * or visit www.oracle.com if you need additional information or have any
trims@1472 21 * questions.
duke@0 22 *
duke@0 23 */
duke@0 24
stefank@1885 25 #include "precompiled.hpp"
stefank@1885 26 #include "classfile/dictionary.hpp"
stefank@1885 27 #include "classfile/javaClasses.hpp"
stefank@1885 28 #include "classfile/loaderConstraints.hpp"
stefank@1885 29 #include "classfile/placeholders.hpp"
stefank@1885 30 #include "classfile/symbolTable.hpp"
stefank@1885 31 #include "classfile/systemDictionary.hpp"
never@2713 32 #include "ci/ciField.hpp"
never@2713 33 #include "ci/ciInstance.hpp"
never@2713 34 #include "ci/ciObjArrayKlass.hpp"
never@2713 35 #include "ci/ciMethodData.hpp"
never@2713 36 #include "ci/ciSymbol.hpp"
stefank@1885 37 #include "code/codeBlob.hpp"
stefank@1885 38 #include "code/codeCache.hpp"
stefank@1885 39 #include "code/compressedStream.hpp"
stefank@1885 40 #include "code/location.hpp"
stefank@1885 41 #include "code/nmethod.hpp"
stefank@1885 42 #include "code/pcDesc.hpp"
stefank@1885 43 #include "code/stubs.hpp"
stefank@1885 44 #include "code/vmreg.hpp"
stefank@1885 45 #include "compiler/oopMap.hpp"
never@2713 46 #include "compiler/compileBroker.hpp"
stefank@1885 47 #include "gc_implementation/shared/immutableSpace.hpp"
stefank@1885 48 #include "gc_implementation/shared/markSweep.hpp"
stefank@1885 49 #include "gc_implementation/shared/mutableSpace.hpp"
stefank@1885 50 #include "gc_interface/collectedHeap.hpp"
stefank@1885 51 #include "interpreter/bytecodeInterpreter.hpp"
stefank@1885 52 #include "interpreter/bytecodes.hpp"
stefank@1885 53 #include "interpreter/interpreter.hpp"
coleenp@3656 54 #include "memory/allocation.hpp"
stefank@1885 55 #include "memory/cardTableRS.hpp"
stefank@1885 56 #include "memory/defNewGeneration.hpp"
jmasa@3323 57 #include "memory/freeBlockDictionary.hpp"
stefank@1885 58 #include "memory/genCollectedHeap.hpp"
stefank@1885 59 #include "memory/generation.hpp"
stefank@1885 60 #include "memory/generationSpec.hpp"
stefank@1885 61 #include "memory/heap.hpp"
jmasa@3825 62 #include "memory/metablock.hpp"
stefank@1885 63 #include "memory/space.hpp"
stefank@1885 64 #include "memory/tenuredGeneration.hpp"
stefank@1885 65 #include "memory/universe.hpp"
stefank@1885 66 #include "memory/watermark.hpp"
stefank@1885 67 #include "oops/arrayKlass.hpp"
stefank@1885 68 #include "oops/arrayOop.hpp"
coleenp@3656 69 #include "oops/compiledICHolder.hpp"
coleenp@3656 70 #include "oops/constMethod.hpp"
coleenp@3656 71 #include "oops/constantPool.hpp"
coleenp@3656 72 #include "oops/cpCache.hpp"
coleenp@3656 73 #include "oops/instanceClassLoaderKlass.hpp"
stefank@1885 74 #include "oops/instanceKlass.hpp"
never@2266 75 #include "oops/instanceMirrorKlass.hpp"
stefank@1885 76 #include "oops/instanceOop.hpp"
stefank@1885 77 #include "oops/klass.hpp"
stefank@1885 78 #include "oops/markOop.hpp"
coleenp@3656 79 #include "oops/methodData.hpp"
jiangli@4594 80 #include "oops/methodCounters.hpp"
coleenp@3656 81 #include "oops/method.hpp"
stefank@1885 82 #include "oops/objArrayKlass.hpp"
stefank@1885 83 #include "oops/objArrayOop.hpp"
stefank@1885 84 #include "oops/oop.inline.hpp"
coleenp@2069 85 #include "oops/symbol.hpp"
stefank@1885 86 #include "oops/typeArrayKlass.hpp"
stefank@1885 87 #include "oops/typeArrayOop.hpp"
stefank@1885 88 #include "prims/jvmtiAgentThread.hpp"
stefank@1885 89 #include "runtime/arguments.hpp"
never@2713 90 #include "runtime/deoptimization.hpp"
never@2713 91 #include "runtime/vframeArray.hpp"
stefank@1885 92 #include "runtime/globals.hpp"
stefank@1885 93 #include "runtime/java.hpp"
stefank@1885 94 #include "runtime/javaCalls.hpp"
stefank@1885 95 #include "runtime/perfMemory.hpp"
kamg@2083 96 #include "runtime/serviceThread.hpp"
stefank@1885 97 #include "runtime/sharedRuntime.hpp"
stefank@1885 98 #include "runtime/stubRoutines.hpp"
stefank@3931 99 #include "runtime/thread.inline.hpp"
stefank@1885 100 #include "runtime/virtualspace.hpp"
stefank@1885 101 #include "runtime/vmStructs.hpp"
coleenp@3656 102 #include "utilities/array.hpp"
stefank@1885 103 #include "utilities/globalDefinitions.hpp"
stefank@1885 104 #include "utilities/hashtable.hpp"
jprovino@4184 105 #include "utilities/macros.hpp"
stefank@1885 106 #ifdef TARGET_ARCH_x86
stefank@1885 107 # include "vmStructs_x86.hpp"
stefank@1885 108 #endif
stefank@1885 109 #ifdef TARGET_ARCH_sparc
stefank@1885 110 # include "vmStructs_sparc.hpp"
stefank@1885 111 #endif
stefank@1885 112 #ifdef TARGET_ARCH_zero
stefank@1885 113 # include "vmStructs_zero.hpp"
stefank@1885 114 #endif
bobv@2080 115 #ifdef TARGET_ARCH_arm
bobv@2080 116 # include "vmStructs_arm.hpp"
bobv@2080 117 #endif
bobv@2080 118 #ifdef TARGET_ARCH_ppc
bobv@2080 119 # include "vmStructs_ppc.hpp"
bobv@2080 120 #endif
stefank@1885 121 #ifdef TARGET_OS_ARCH_linux_x86
stefank@1885 122 # include "vmStructs_linux_x86.hpp"
stefank@1885 123 #endif
stefank@1885 124 #ifdef TARGET_OS_ARCH_linux_sparc
stefank@1885 125 # include "vmStructs_linux_sparc.hpp"
stefank@1885 126 #endif
stefank@1885 127 #ifdef TARGET_OS_ARCH_linux_zero
stefank@1885 128 # include "vmStructs_linux_zero.hpp"
stefank@1885 129 #endif
stefank@1885 130 #ifdef TARGET_OS_ARCH_solaris_x86
stefank@1885 131 # include "vmStructs_solaris_x86.hpp"
stefank@1885 132 #endif
stefank@1885 133 #ifdef TARGET_OS_ARCH_solaris_sparc
stefank@1885 134 # include "vmStructs_solaris_sparc.hpp"
stefank@1885 135 #endif
stefank@1885 136 #ifdef TARGET_OS_ARCH_windows_x86
stefank@1885 137 # include "vmStructs_windows_x86.hpp"
stefank@1885 138 #endif
bobv@2080 139 #ifdef TARGET_OS_ARCH_linux_arm
bobv@2080 140 # include "vmStructs_linux_arm.hpp"
bobv@2080 141 #endif
bobv@2080 142 #ifdef TARGET_OS_ARCH_linux_ppc
bobv@2080 143 # include "vmStructs_linux_ppc.hpp"
bobv@2080 144 #endif
never@2731 145 #ifdef TARGET_OS_ARCH_bsd_x86
never@2731 146 # include "vmStructs_bsd_x86.hpp"
never@2731 147 #endif
never@2731 148 #ifdef TARGET_OS_ARCH_bsd_zero
never@2731 149 # include "vmStructs_bsd_zero.hpp"
never@2731 150 #endif
jprovino@4184 151 #if INCLUDE_ALL_GCS
stefank@1885 152 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp"
stefank@1885 153 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp"
stefank@1885 154 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
stefank@1885 155 #include "gc_implementation/concurrentMarkSweep/vmStructs_cms.hpp"
stefank@1885 156 #include "gc_implementation/parNew/parNewGeneration.hpp"
stefank@1885 157 #include "gc_implementation/parNew/vmStructs_parNew.hpp"
stefank@1885 158 #include "gc_implementation/parallelScavenge/asPSOldGen.hpp"
stefank@1885 159 #include "gc_implementation/parallelScavenge/asPSYoungGen.hpp"
stefank@1885 160 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
stefank@1885 161 #include "gc_implementation/parallelScavenge/psOldGen.hpp"
stefank@1885 162 #include "gc_implementation/parallelScavenge/psVirtualspace.hpp"
stefank@1885 163 #include "gc_implementation/parallelScavenge/psYoungGen.hpp"
stefank@1885 164 #include "gc_implementation/parallelScavenge/vmStructs_parallelgc.hpp"
tonyp@2743 165 #include "gc_implementation/g1/vmStructs_g1.hpp"
jprovino@4184 166 #endif // INCLUDE_ALL_GCS
stefank@1885 167 #ifdef COMPILER2
never@2713 168 #include "opto/addnode.hpp"
never@2713 169 #include "opto/block.hpp"
never@2713 170 #include "opto/callnode.hpp"
never@2713 171 #include "opto/cfgnode.hpp"
never@2713 172 #include "opto/chaitin.hpp"
never@2713 173 #include "opto/divnode.hpp"
never@2713 174 #include "opto/locknode.hpp"
never@2713 175 #include "opto/loopnode.hpp"
never@2713 176 #include "opto/machnode.hpp"
stefank@1885 177 #include "opto/matcher.hpp"
never@2713 178 #include "opto/mulnode.hpp"
never@2713 179 #include "opto/phaseX.hpp"
never@2713 180 #include "opto/parse.hpp"
never@2713 181 #include "opto/regalloc.hpp"
never@2713 182 #include "opto/rootnode.hpp"
never@2713 183 #include "opto/subnode.hpp"
never@2713 184 #include "opto/vectornode.hpp"
stefank@1885 185 #ifdef TARGET_ARCH_MODEL_x86_32
stefank@1885 186 # include "adfiles/adGlobals_x86_32.hpp"
stefank@1885 187 #endif
stefank@1885 188 #ifdef TARGET_ARCH_MODEL_x86_64
stefank@1885 189 # include "adfiles/adGlobals_x86_64.hpp"
stefank@1885 190 #endif
stefank@1885 191 #ifdef TARGET_ARCH_MODEL_sparc
stefank@1885 192 # include "adfiles/adGlobals_sparc.hpp"
stefank@1885 193 #endif
stefank@1885 194 #ifdef TARGET_ARCH_MODEL_zero
stefank@1885 195 # include "adfiles/adGlobals_zero.hpp"
stefank@1885 196 #endif
bobv@2080 197 #ifdef TARGET_ARCH_MODEL_arm
bobv@2080 198 # include "adfiles/adGlobals_arm.hpp"
bobv@2080 199 #endif
bobv@2080 200 #ifdef TARGET_ARCH_MODEL_ppc
bobv@2080 201 # include "adfiles/adGlobals_ppc.hpp"
bobv@2080 202 #endif
stefank@1885 203 #endif
duke@0 204
duke@0 205 // Note: the cross-product of (c1, c2, product, nonproduct, ...),
duke@0 206 // (nonstatic, static), and (unchecked, checked) has not been taken.
duke@0 207 // Only the macros currently needed have been defined.
duke@0 208
duke@0 209 // A field whose type is not checked is given a null string as the
duke@0 210 // type name, indicating an "opaque" type to the serviceability agent.
duke@0 211
duke@0 212 // NOTE: there is an interdependency between this file and
duke@0 213 // HotSpotTypeDataBase.java, which parses the type strings.
duke@0 214
duke@0 215 #ifndef REG_COUNT
duke@0 216 #define REG_COUNT 0
duke@0 217 #endif
duke@0 218 // whole purpose of this function is to work around bug c++/27724 in gcc 4.1.1
duke@0 219 // with optimization turned on it doesn't affect produced code
duke@0 220 static inline uint64_t cast_uint64_t(size_t x)
duke@0 221 {
duke@0 222 return x;
duke@0 223 }
duke@0 224
jprovino@3796 225 #if INCLUDE_JVMTI
jprovino@3796 226 #define JVMTI_STRUCTS(static_field) \
jprovino@3796 227 static_field(JvmtiExport, _can_access_local_variables, bool) \
jprovino@3796 228 static_field(JvmtiExport, _can_hotswap_or_post_breakpoint, bool) \
jprovino@3796 229 static_field(JvmtiExport, _can_post_on_exceptions, bool) \
jprovino@3796 230 static_field(JvmtiExport, _can_walk_any_space, bool)
jprovino@3796 231 #else
jprovino@3796 232 #define JVMTI_STRUCTS(static_field)
jprovino@3796 233 #endif // INCLUDE_JVMTI
duke@0 234
zgu@3505 235 typedef HashtableEntry<intptr_t, mtInternal> IntptrHashtableEntry;
zgu@3505 236 typedef Hashtable<intptr_t, mtInternal> IntptrHashtable;
zgu@3505 237 typedef Hashtable<Symbol*, mtSymbol> SymbolHashtable;
zgu@3505 238 typedef HashtableEntry<Symbol*, mtClass> SymbolHashtableEntry;
zgu@3505 239 typedef Hashtable<oop, mtSymbol> StringHashtable;
coleenp@3656 240 typedef TwoOopHashtable<Klass*, mtClass> KlassTwoOopHashtable;
coleenp@3656 241 typedef Hashtable<Klass*, mtClass> KlassHashtable;
coleenp@3656 242 typedef HashtableEntry<Klass*, mtClass> KlassHashtableEntry;
zgu@3505 243 typedef TwoOopHashtable<Symbol*, mtClass> SymbolTwoOopHashtable;
jmasa@3825 244 typedef BinaryTreeDictionary<Metablock, FreeList> MetablockTreeDictionary;
zgu@3505 245
duke@0 246 //--------------------------------------------------------------------------------
duke@0 247 // VM_STRUCTS
duke@0 248 //
duke@0 249 // This list enumerates all of the fields the serviceability agent
duke@0 250 // needs to know about. Be sure to see also the type table below this one.
duke@0 251 // NOTE that there are platform-specific additions to this table in
duke@0 252 // vmStructs_<os>_<cpu>.hpp.
duke@0 253
duke@0 254 #define VM_STRUCTS(nonstatic_field, \
duke@0 255 static_field, \
duke@0 256 unchecked_nonstatic_field, \
duke@0 257 volatile_nonstatic_field, \
duke@0 258 nonproduct_nonstatic_field, \
duke@0 259 c1_nonstatic_field, \
duke@0 260 c2_nonstatic_field, \
duke@0 261 unchecked_c1_static_field, \
mikael@4068 262 unchecked_c2_static_field) \
duke@0 263 \
duke@0 264 /******************************************************************/ \
coleenp@3656 265 /* OopDesc and Klass hierarchies (NOTE: MethodData* incomplete) */ \
duke@0 266 /******************************************************************/ \
duke@0 267 \
duke@0 268 volatile_nonstatic_field(oopDesc, _mark, markOop) \
coleenp@3656 269 volatile_nonstatic_field(oopDesc, _metadata._klass, Klass*) \
coleenp@113 270 volatile_nonstatic_field(oopDesc, _metadata._compressed_klass, narrowOop) \
duke@0 271 static_field(oopDesc, _bs, BarrierSet*) \
coleenp@3764 272 nonstatic_field(ArrayKlass, _dimension, int) \
coleenp@3764 273 volatile_nonstatic_field(ArrayKlass, _higher_dimension, Klass*) \
coleenp@3764 274 volatile_nonstatic_field(ArrayKlass, _lower_dimension, Klass*) \
coleenp@3764 275 nonstatic_field(ArrayKlass, _vtable_len, int) \
coleenp@3764 276 nonstatic_field(ArrayKlass, _alloc_size, juint) \
coleenp@3764 277 nonstatic_field(ArrayKlass, _component_mirror, oop) \
coleenp@3656 278 nonstatic_field(CompiledICHolder, _holder_method, Method*) \
coleenp@3656 279 nonstatic_field(CompiledICHolder, _holder_klass, Klass*) \
coleenp@3656 280 nonstatic_field(ConstantPool, _tags, Array<u1>*) \
coleenp@3656 281 nonstatic_field(ConstantPool, _cache, ConstantPoolCache*) \
coleenp@3880 282 nonstatic_field(ConstantPool, _pool_holder, InstanceKlass*) \
coleenp@3656 283 nonstatic_field(ConstantPool, _operands, Array<u2>*) \
coleenp@3656 284 nonstatic_field(ConstantPool, _length, int) \
coleenp@3656 285 nonstatic_field(ConstantPool, _resolved_references, jobject) \
coleenp@3656 286 nonstatic_field(ConstantPool, _reference_map, Array<u2>*) \
coleenp@3656 287 nonstatic_field(ConstantPoolCache, _length, int) \
coleenp@3656 288 nonstatic_field(ConstantPoolCache, _constant_pool, ConstantPool*) \
coleenp@3656 289 nonstatic_field(InstanceKlass, _array_klasses, Klass*) \
coleenp@3656 290 nonstatic_field(InstanceKlass, _methods, Array<Method*>*) \
coleenp@3656 291 nonstatic_field(InstanceKlass, _local_interfaces, Array<Klass*>*) \
coleenp@3656 292 nonstatic_field(InstanceKlass, _transitive_interfaces, Array<Klass*>*) \
coleenp@3656 293 nonstatic_field(InstanceKlass, _fields, Array<u2>*) \
coleenp@3656 294 nonstatic_field(InstanceKlass, _java_fields_count, u2) \
coleenp@4841 295 nonstatic_field(InstanceKlass, _constants, ConstantPool*) \
coleenp@3656 296 nonstatic_field(InstanceKlass, _class_loader_data, ClassLoaderData*) \
coleenp@3656 297 nonstatic_field(InstanceKlass, _source_file_name, Symbol*) \
coleenp@3656 298 nonstatic_field(InstanceKlass, _source_debug_extension, char*) \
coleenp@3656 299 nonstatic_field(InstanceKlass, _inner_classes, Array<jushort>*) \
coleenp@3656 300 nonstatic_field(InstanceKlass, _nonstatic_field_size, int) \
coleenp@3656 301 nonstatic_field(InstanceKlass, _static_field_size, int) \
coleenp@3656 302 nonstatic_field(InstanceKlass, _static_oop_field_count, u2) \
coleenp@3656 303 nonstatic_field(InstanceKlass, _nonstatic_oop_map_size, int) \
coleenp@3656 304 nonstatic_field(InstanceKlass, _is_marked_dependent, bool) \
coleenp@3656 305 nonstatic_field(InstanceKlass, _minor_version, u2) \
coleenp@3656 306 nonstatic_field(InstanceKlass, _major_version, u2) \
coleenp@3656 307 nonstatic_field(InstanceKlass, _init_state, u1) \
coleenp@3656 308 nonstatic_field(InstanceKlass, _init_thread, Thread*) \
coleenp@3656 309 nonstatic_field(InstanceKlass, _vtable_len, int) \
coleenp@3656 310 nonstatic_field(InstanceKlass, _itable_len, int) \
coleenp@3656 311 nonstatic_field(InstanceKlass, _reference_type, u1) \
coleenp@3656 312 volatile_nonstatic_field(InstanceKlass, _oop_map_cache, OopMapCache*) \
coleenp@3656 313 nonstatic_field(InstanceKlass, _jni_ids, JNIid*) \
coleenp@3656 314 nonstatic_field(InstanceKlass, _osr_nmethods_head, nmethod*) \
coleenp@3656 315 nonstatic_field(InstanceKlass, _breakpoints, BreakpointInfo*) \
coleenp@3656 316 nonstatic_field(InstanceKlass, _generic_signature, Symbol*) \
coleenp@3656 317 nonstatic_field(InstanceKlass, _methods_jmethod_ids, jmethodID*) \
coleenp@3656 318 nonstatic_field(InstanceKlass, _methods_cached_itable_indices, int*) \
coleenp@3656 319 volatile_nonstatic_field(InstanceKlass, _idnum_allocated_count, u2) \
coleenp@3656 320 nonstatic_field(InstanceKlass, _annotations, Annotations*) \
coleenp@3656 321 nonstatic_field(InstanceKlass, _dependencies, nmethodBucket*) \
never@2713 322 nonstatic_field(nmethodBucket, _nmethod, nmethod*) \
never@2713 323 nonstatic_field(nmethodBucket, _count, int) \
never@2713 324 nonstatic_field(nmethodBucket, _next, nmethodBucket*) \
coleenp@3656 325 nonstatic_field(InstanceKlass, _method_ordering, Array<int>*) \
duke@0 326 nonstatic_field(Klass, _super_check_offset, juint) \
coleenp@3656 327 nonstatic_field(Klass, _secondary_super_cache, Klass*) \
coleenp@3656 328 nonstatic_field(Klass, _secondary_supers, Array<Klass*>*) \
coleenp@3656 329 nonstatic_field(Klass, _primary_supers[0], Klass*) \
duke@0 330 nonstatic_field(Klass, _java_mirror, oop) \
duke@0 331 nonstatic_field(Klass, _modifier_flags, jint) \
coleenp@3656 332 nonstatic_field(Klass, _super, Klass*) \
duke@0 333 nonstatic_field(Klass, _layout_helper, jint) \
coleenp@2069 334 nonstatic_field(Klass, _name, Symbol*) \
duke@0 335 nonstatic_field(Klass, _access_flags, AccessFlags) \
coleenp@3656 336 nonstatic_field(Klass, _subklass, Klass*) \
coleenp@3656 337 nonstatic_field(Klass, _next_sibling, Klass*) \
duke@0 338 nonstatic_field(Klass, _alloc_count, juint) \
coleenp@3656 339 nonstatic_field(MethodData, _size, int) \
coleenp@3656 340 nonstatic_field(MethodData, _method, Method*) \
coleenp@3656 341 nonstatic_field(MethodData, _data_size, int) \
coleenp@3656 342 nonstatic_field(MethodData, _data[0], intptr_t) \
coleenp@3656 343 nonstatic_field(MethodData, _nof_decompiles, uint) \
coleenp@3656 344 nonstatic_field(MethodData, _nof_overflow_recompiles, uint) \
coleenp@3656 345 nonstatic_field(MethodData, _nof_overflow_traps, uint) \
coleenp@3656 346 nonstatic_field(MethodData, _eflags, intx) \
coleenp@3656 347 nonstatic_field(MethodData, _arg_local, intx) \
coleenp@3656 348 nonstatic_field(MethodData, _arg_stack, intx) \
coleenp@3656 349 nonstatic_field(MethodData, _arg_returned, intx) \
jiangli@4594 350 nonstatic_field(MethodCounters, _interpreter_invocation_count, int) \
jiangli@4594 351 nonstatic_field(MethodCounters, _interpreter_throwout_count, u2) \
jiangli@4594 352 nonstatic_field(MethodCounters, _number_of_breakpoints, u2) \
jiangli@4594 353 nonstatic_field(MethodCounters, _invocation_counter, InvocationCounter) \
jiangli@4594 354 nonstatic_field(MethodCounters, _backedge_counter, InvocationCounter) \
jiangli@4594 355 nonstatic_field(Method, _constMethod, ConstMethod*) \
jiangli@4594 356 nonstatic_field(Method, _method_data, MethodData*) \
jiangli@4594 357 nonstatic_field(Method, _method_counters, MethodCounters*) \
coleenp@3656 358 nonstatic_field(Method, _access_flags, AccessFlags) \
coleenp@3656 359 nonstatic_field(Method, _vtable_index, int) \
coleenp@3656 360 nonstatic_field(Method, _method_size, u2) \
coleenp@3656 361 nonproduct_nonstatic_field(Method, _compiled_invocation_count, int) \
coleenp@3656 362 volatile_nonstatic_field(Method, _code, nmethod*) \
coleenp@3656 363 nonstatic_field(Method, _i2i_entry, address) \
coleenp@3656 364 nonstatic_field(Method, _adapter, AdapterHandlerEntry*) \
coleenp@3656 365 volatile_nonstatic_field(Method, _from_compiled_entry, address) \
coleenp@3656 366 volatile_nonstatic_field(Method, _from_interpreted_entry, address) \
coleenp@3656 367 volatile_nonstatic_field(ConstMethod, _fingerprint, uint64_t) \
coleenp@4214 368 nonstatic_field(ConstMethod, _constants, ConstantPool*) \
coleenp@3656 369 nonstatic_field(ConstMethod, _stackmap_data, Array<u1>*) \
coleenp@3656 370 nonstatic_field(ConstMethod, _constMethod_size, int) \
coleenp@4214 371 nonstatic_field(ConstMethod, _flags, u2) \
coleenp@3656 372 nonstatic_field(ConstMethod, _code_size, u2) \
coleenp@3656 373 nonstatic_field(ConstMethod, _name_index, u2) \
coleenp@3656 374 nonstatic_field(ConstMethod, _signature_index, u2) \
coleenp@3656 375 nonstatic_field(ConstMethod, _method_idnum, u2) \
jiangli@3934 376 nonstatic_field(ConstMethod, _max_stack, u2) \
jiangli@3971 377 nonstatic_field(ConstMethod, _max_locals, u2) \
jiangli@3971 378 nonstatic_field(ConstMethod, _size_of_parameters, u2) \
coleenp@3764 379 nonstatic_field(ObjArrayKlass, _element_klass, Klass*) \
coleenp@3764 380 nonstatic_field(ObjArrayKlass, _bottom_klass, Klass*) \
coleenp@2069 381 volatile_nonstatic_field(Symbol, _refcount, int) \
coleenp@2069 382 nonstatic_field(Symbol, _identity_hash, int) \
coleenp@2069 383 nonstatic_field(Symbol, _length, unsigned short) \
coleenp@2069 384 unchecked_nonstatic_field(Symbol, _body, sizeof(jbyte)) /* NOTE: no type */ \
coleenp@3764 385 nonstatic_field(TypeArrayKlass, _max_length, int) \
duke@0 386 \
duke@0 387 /***********************/ \
duke@0 388 /* Constant Pool Cache */ \
duke@0 389 /***********************/ \
duke@0 390 \
duke@0 391 volatile_nonstatic_field(ConstantPoolCacheEntry, _indices, intx) \
coleenp@3656 392 nonstatic_field(ConstantPoolCacheEntry, _f1, volatile Metadata*) \
duke@0 393 volatile_nonstatic_field(ConstantPoolCacheEntry, _f2, intx) \
duke@0 394 volatile_nonstatic_field(ConstantPoolCacheEntry, _flags, intx) \
duke@0 395 \
duke@0 396 /********************************/ \
duke@0 397 /* MethodOop-related structures */ \
duke@0 398 /********************************/ \
duke@0 399 \
duke@0 400 nonstatic_field(CheckedExceptionElement, class_cp_index, u2) \
duke@0 401 nonstatic_field(LocalVariableTableElement, start_bci, u2) \
duke@0 402 nonstatic_field(LocalVariableTableElement, length, u2) \
duke@0 403 nonstatic_field(LocalVariableTableElement, name_cp_index, u2) \
duke@0 404 nonstatic_field(LocalVariableTableElement, descriptor_cp_index, u2) \
duke@0 405 nonstatic_field(LocalVariableTableElement, signature_cp_index, u2) \
duke@0 406 nonstatic_field(LocalVariableTableElement, slot, u2) \
jiangli@3530 407 nonstatic_field(ExceptionTableElement, start_pc, u2) \
jiangli@3530 408 nonstatic_field(ExceptionTableElement, end_pc, u2) \
jiangli@3530 409 nonstatic_field(ExceptionTableElement, handler_pc, u2) \
jiangli@3530 410 nonstatic_field(ExceptionTableElement, catch_type_index, u2) \
duke@0 411 nonstatic_field(BreakpointInfo, _orig_bytecode, Bytecodes::Code) \
duke@0 412 nonstatic_field(BreakpointInfo, _bci, int) \
duke@0 413 nonstatic_field(BreakpointInfo, _name_index, u2) \
duke@0 414 nonstatic_field(BreakpointInfo, _signature_index, u2) \
duke@0 415 nonstatic_field(BreakpointInfo, _next, BreakpointInfo*) \
duke@0 416 /***********/ \
duke@0 417 /* JNI IDs */ \
duke@0 418 /***********/ \
duke@0 419 \
coleenp@3656 420 nonstatic_field(JNIid, _holder, Klass*) \
duke@0 421 nonstatic_field(JNIid, _next, JNIid*) \
duke@0 422 nonstatic_field(JNIid, _offset, int) \
duke@0 423 /************/ \
duke@0 424 /* Universe */ \
duke@0 425 /************/ \
duke@0 426 \
coleenp@3656 427 static_field(Universe, _boolArrayKlassObj, Klass*) \
coleenp@3656 428 static_field(Universe, _byteArrayKlassObj, Klass*) \
coleenp@3656 429 static_field(Universe, _charArrayKlassObj, Klass*) \
coleenp@3656 430 static_field(Universe, _intArrayKlassObj, Klass*) \
coleenp@3656 431 static_field(Universe, _shortArrayKlassObj, Klass*) \
coleenp@3656 432 static_field(Universe, _longArrayKlassObj, Klass*) \
coleenp@3656 433 static_field(Universe, _singleArrayKlassObj, Klass*) \
coleenp@3656 434 static_field(Universe, _doubleArrayKlassObj, Klass*) \
never@2713 435 static_field(Universe, _mirrors[0], oop) \
duke@0 436 static_field(Universe, _main_thread_group, oop) \
duke@0 437 static_field(Universe, _system_thread_group, oop) \
duke@0 438 static_field(Universe, _the_empty_class_klass_array, objArrayOop) \
duke@0 439 static_field(Universe, _out_of_memory_error_java_heap, oop) \
duke@0 440 static_field(Universe, _out_of_memory_error_perm_gen, oop) \
duke@0 441 static_field(Universe, _out_of_memory_error_array_size, oop) \
duke@0 442 static_field(Universe, _out_of_memory_error_gc_overhead_limit, oop) \
duke@0 443 static_field(Universe, _null_ptr_exception_instance, oop) \
duke@0 444 static_field(Universe, _arithmetic_exception_instance, oop) \
duke@0 445 static_field(Universe, _vm_exception, oop) \
duke@0 446 static_field(Universe, _collectedHeap, CollectedHeap*) \
duke@0 447 static_field(Universe, _base_vtable_size, int) \
duke@0 448 static_field(Universe, _bootstrapping, bool) \
duke@0 449 static_field(Universe, _fully_initialized, bool) \
duke@0 450 static_field(Universe, _verify_count, int) \
kvn@642 451 static_field(Universe, _narrow_oop._base, address) \
kvn@642 452 static_field(Universe, _narrow_oop._shift, int) \
kvn@642 453 static_field(Universe, _narrow_oop._use_implicit_null_checks, bool) \
roland@3790 454 static_field(Universe, _narrow_klass._base, address) \
roland@3790 455 static_field(Universe, _narrow_klass._shift, int) \
duke@0 456 \
duke@0 457 /**********************************************************************************/ \
duke@0 458 /* Generation and Space hierarchies */ \
duke@0 459 /**********************************************************************************/ \
duke@0 460 \
duke@0 461 unchecked_nonstatic_field(ageTable, sizes, sizeof(ageTable::sizes)) \
duke@0 462 \
duke@0 463 nonstatic_field(BarrierSet, _max_covered_regions, int) \
duke@0 464 nonstatic_field(BlockOffsetTable, _bottom, HeapWord*) \
duke@0 465 nonstatic_field(BlockOffsetTable, _end, HeapWord*) \
duke@0 466 \
duke@0 467 nonstatic_field(BlockOffsetSharedArray, _reserved, MemRegion) \
duke@0 468 nonstatic_field(BlockOffsetSharedArray, _end, HeapWord*) \
duke@0 469 nonstatic_field(BlockOffsetSharedArray, _vs, VirtualSpace) \
duke@0 470 nonstatic_field(BlockOffsetSharedArray, _offset_array, u_char*) \
duke@0 471 \
duke@0 472 nonstatic_field(BlockOffsetArray, _array, BlockOffsetSharedArray*) \
duke@0 473 nonstatic_field(BlockOffsetArray, _sp, Space*) \
duke@0 474 nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_threshold, HeapWord*) \
duke@0 475 nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_index, size_t) \
duke@0 476 \
duke@0 477 nonstatic_field(BlockOffsetArrayNonContigSpace, _unallocated_block, HeapWord*) \
duke@0 478 \
duke@0 479 nonstatic_field(CardGeneration, _rs, GenRemSet*) \
duke@0 480 nonstatic_field(CardGeneration, _bts, BlockOffsetSharedArray*) \
jmasa@4557 481 nonstatic_field(CardGeneration, _shrink_factor, size_t) \
jmasa@4557 482 nonstatic_field(CardGeneration, _capacity_at_prologue, size_t) \
jmasa@4557 483 nonstatic_field(CardGeneration, _used_at_prologue, size_t) \
duke@0 484 \
duke@0 485 nonstatic_field(CardTableModRefBS, _whole_heap, const MemRegion) \
duke@0 486 nonstatic_field(CardTableModRefBS, _guard_index, const size_t) \
duke@0 487 nonstatic_field(CardTableModRefBS, _last_valid_index, const size_t) \
duke@0 488 nonstatic_field(CardTableModRefBS, _page_size, const size_t) \
duke@0 489 nonstatic_field(CardTableModRefBS, _byte_map_size, const size_t) \
duke@0 490 nonstatic_field(CardTableModRefBS, _byte_map, jbyte*) \
duke@0 491 nonstatic_field(CardTableModRefBS, _cur_covered_regions, int) \
duke@0 492 nonstatic_field(CardTableModRefBS, _covered, MemRegion*) \
duke@0 493 nonstatic_field(CardTableModRefBS, _committed, MemRegion*) \
duke@0 494 nonstatic_field(CardTableModRefBS, _guard_region, MemRegion) \
duke@0 495 nonstatic_field(CardTableModRefBS, byte_map_base, jbyte*) \
duke@0 496 \
ysr@342 497 nonstatic_field(CardTableRS, _ct_bs, CardTableModRefBSForCTRS*) \
duke@0 498 \
duke@0 499 nonstatic_field(CollectedHeap, _reserved, MemRegion) \
duke@0 500 nonstatic_field(CollectedHeap, _barrier_set, BarrierSet*) \
ysr@1166 501 nonstatic_field(CollectedHeap, _defer_initial_card_mark, bool) \
duke@0 502 nonstatic_field(CollectedHeap, _is_gc_active, bool) \
duke@0 503 nonstatic_field(CompactibleSpace, _compaction_top, HeapWord*) \
duke@0 504 nonstatic_field(CompactibleSpace, _first_dead, HeapWord*) \
duke@0 505 nonstatic_field(CompactibleSpace, _end_of_live, HeapWord*) \
duke@0 506 \
duke@0 507 \
duke@0 508 nonstatic_field(ContiguousSpace, _top, HeapWord*) \
duke@0 509 nonstatic_field(ContiguousSpace, _concurrent_iteration_safe_limit, HeapWord*) \
duke@0 510 nonstatic_field(ContiguousSpace, _saved_mark_word, HeapWord*) \
duke@0 511 \
duke@0 512 nonstatic_field(DefNewGeneration, _next_gen, Generation*) \
jwilhelm@3749 513 nonstatic_field(DefNewGeneration, _tenuring_threshold, uint) \
duke@0 514 nonstatic_field(DefNewGeneration, _age_table, ageTable) \
duke@0 515 nonstatic_field(DefNewGeneration, _eden_space, EdenSpace*) \
duke@0 516 nonstatic_field(DefNewGeneration, _from_space, ContiguousSpace*) \
duke@0 517 nonstatic_field(DefNewGeneration, _to_space, ContiguousSpace*) \
duke@0 518 \
duke@0 519 nonstatic_field(EdenSpace, _gen, DefNewGeneration*) \
duke@0 520 \
duke@0 521 nonstatic_field(Generation, _reserved, MemRegion) \
duke@0 522 nonstatic_field(Generation, _virtual_space, VirtualSpace) \
duke@0 523 nonstatic_field(Generation, _level, int) \
duke@0 524 nonstatic_field(Generation, _stat_record, Generation::StatRecord) \
duke@0 525 \
duke@0 526 nonstatic_field(Generation::StatRecord, invocations, int) \
duke@0 527 nonstatic_field(Generation::StatRecord, accumulated_time, elapsedTimer) \
duke@0 528 \
duke@0 529 nonstatic_field(GenerationSpec, _name, Generation::Name) \
duke@0 530 nonstatic_field(GenerationSpec, _init_size, size_t) \
duke@0 531 nonstatic_field(GenerationSpec, _max_size, size_t) \
duke@0 532 \
duke@0 533 static_field(GenCollectedHeap, _gch, GenCollectedHeap*) \
duke@0 534 nonstatic_field(GenCollectedHeap, _n_gens, int) \
duke@0 535 unchecked_nonstatic_field(GenCollectedHeap, _gens, sizeof(GenCollectedHeap::_gens)) /* NOTE: no type */ \
duke@0 536 nonstatic_field(GenCollectedHeap, _gen_specs, GenerationSpec**) \
duke@0 537 \
duke@0 538 nonstatic_field(HeapWord, i, char*) \
duke@0 539 \
duke@0 540 nonstatic_field(MemRegion, _start, HeapWord*) \
duke@0 541 nonstatic_field(MemRegion, _word_size, size_t) \
duke@0 542 \
duke@0 543 nonstatic_field(OffsetTableContigSpace, _offsets, BlockOffsetArray) \
duke@0 544 \
duke@0 545 nonstatic_field(OneContigSpaceCardGeneration, _min_heap_delta_bytes, size_t) \
duke@0 546 nonstatic_field(OneContigSpaceCardGeneration, _the_space, ContiguousSpace*) \
duke@0 547 nonstatic_field(OneContigSpaceCardGeneration, _last_gc, WaterMark) \
duke@0 548 \
duke@0 549 \
duke@0 550 \
duke@0 551 nonstatic_field(Space, _bottom, HeapWord*) \
duke@0 552 nonstatic_field(Space, _end, HeapWord*) \
duke@0 553 \
duke@0 554 nonstatic_field(ThreadLocalAllocBuffer, _start, HeapWord*) \
duke@0 555 nonstatic_field(ThreadLocalAllocBuffer, _top, HeapWord*) \
duke@0 556 nonstatic_field(ThreadLocalAllocBuffer, _end, HeapWord*) \
duke@0 557 nonstatic_field(ThreadLocalAllocBuffer, _desired_size, size_t) \
duke@0 558 nonstatic_field(ThreadLocalAllocBuffer, _refill_waste_limit, size_t) \
duke@0 559 static_field(ThreadLocalAllocBuffer, _target_refills, unsigned) \
duke@0 560 nonstatic_field(VirtualSpace, _low_boundary, char*) \
duke@0 561 nonstatic_field(VirtualSpace, _high_boundary, char*) \
duke@0 562 nonstatic_field(VirtualSpace, _low, char*) \
duke@0 563 nonstatic_field(VirtualSpace, _high, char*) \
duke@0 564 nonstatic_field(VirtualSpace, _lower_high, char*) \
duke@0 565 nonstatic_field(VirtualSpace, _middle_high, char*) \
duke@0 566 nonstatic_field(VirtualSpace, _upper_high, char*) \
duke@0 567 nonstatic_field(WaterMark, _point, HeapWord*) \
duke@0 568 nonstatic_field(WaterMark, _space, Space*) \
duke@0 569 \
duke@0 570 /************************/ \
duke@0 571 /* PerfMemory - jvmstat */ \
duke@0 572 /************************/ \
duke@0 573 \
duke@0 574 nonstatic_field(PerfDataPrologue, magic, jint) \
duke@0 575 nonstatic_field(PerfDataPrologue, byte_order, jbyte) \
duke@0 576 nonstatic_field(PerfDataPrologue, major_version, jbyte) \
duke@0 577 nonstatic_field(PerfDataPrologue, minor_version, jbyte) \
duke@0 578 nonstatic_field(PerfDataPrologue, accessible, jbyte) \
duke@0 579 nonstatic_field(PerfDataPrologue, used, jint) \
duke@0 580 nonstatic_field(PerfDataPrologue, overflow, jint) \
duke@0 581 nonstatic_field(PerfDataPrologue, mod_time_stamp, jlong) \
duke@0 582 nonstatic_field(PerfDataPrologue, entry_offset, jint) \
duke@0 583 nonstatic_field(PerfDataPrologue, num_entries, jint) \
duke@0 584 \
duke@0 585 nonstatic_field(PerfDataEntry, entry_length, jint) \
duke@0 586 nonstatic_field(PerfDataEntry, name_offset, jint) \
duke@0 587 nonstatic_field(PerfDataEntry, vector_length, jint) \
duke@0 588 nonstatic_field(PerfDataEntry, data_type, jbyte) \
duke@0 589 nonstatic_field(PerfDataEntry, flags, jbyte) \
duke@0 590 nonstatic_field(PerfDataEntry, data_units, jbyte) \
duke@0 591 nonstatic_field(PerfDataEntry, data_variability, jbyte) \
duke@0 592 nonstatic_field(PerfDataEntry, data_offset, jint) \
duke@0 593 \
duke@0 594 static_field(PerfMemory, _start, char*) \
duke@0 595 static_field(PerfMemory, _end, char*) \
duke@0 596 static_field(PerfMemory, _top, char*) \
duke@0 597 static_field(PerfMemory, _capacity, size_t) \
duke@0 598 static_field(PerfMemory, _prologue, PerfDataPrologue*) \
duke@0 599 static_field(PerfMemory, _initialized, jint) \
duke@0 600 \
duke@0 601 /***************/ \
duke@0 602 /* SymbolTable */ \
duke@0 603 /***************/ \
duke@0 604 \
duke@0 605 static_field(SymbolTable, _the_table, SymbolTable*) \
duke@0 606 \
duke@0 607 /***************/ \
duke@0 608 /* StringTable */ \
duke@0 609 /***************/ \
duke@0 610 \
duke@0 611 static_field(StringTable, _the_table, StringTable*) \
duke@0 612 \
duke@0 613 /********************/ \
duke@0 614 /* SystemDictionary */ \
duke@0 615 /********************/ \
duke@0 616 \
duke@0 617 static_field(SystemDictionary, _dictionary, Dictionary*) \
duke@0 618 static_field(SystemDictionary, _placeholders, PlaceholderTable*) \
duke@0 619 static_field(SystemDictionary, _shared_dictionary, Dictionary*) \
duke@0 620 static_field(SystemDictionary, _system_loader_lock_obj, oop) \
duke@0 621 static_field(SystemDictionary, _loader_constraints, LoaderConstraintTable*) \
coleenp@3656 622 static_field(SystemDictionary, WK_KLASS(Object_klass), Klass*) \
coleenp@3656 623 static_field(SystemDictionary, WK_KLASS(String_klass), Klass*) \
coleenp@3656 624 static_field(SystemDictionary, WK_KLASS(Class_klass), Klass*) \
coleenp@3656 625 static_field(SystemDictionary, WK_KLASS(Cloneable_klass), Klass*) \
coleenp@3656 626 static_field(SystemDictionary, WK_KLASS(ClassLoader_klass), Klass*) \
coleenp@3656 627 static_field(SystemDictionary, WK_KLASS(Serializable_klass), Klass*) \
coleenp@3656 628 static_field(SystemDictionary, WK_KLASS(System_klass), Klass*) \
coleenp@3656 629 static_field(SystemDictionary, WK_KLASS(Throwable_klass), Klass*) \
coleenp@3656 630 static_field(SystemDictionary, WK_KLASS(ThreadDeath_klass), Klass*) \
coleenp@3656 631 static_field(SystemDictionary, WK_KLASS(Error_klass), Klass*) \
coleenp@3656 632 static_field(SystemDictionary, WK_KLASS(Exception_klass), Klass*) \
coleenp@3656 633 static_field(SystemDictionary, WK_KLASS(RuntimeException_klass), Klass*) \
coleenp@3656 634 static_field(SystemDictionary, WK_KLASS(ClassNotFoundException_klass), Klass*) \
coleenp@3656 635 static_field(SystemDictionary, WK_KLASS(NoClassDefFoundError_klass), Klass*) \
coleenp@3656 636 static_field(SystemDictionary, WK_KLASS(LinkageError_klass), Klass*) \
coleenp@3656 637 static_field(SystemDictionary, WK_KLASS(ClassCastException_klass), Klass*) \
coleenp@3656 638 static_field(SystemDictionary, WK_KLASS(ArrayStoreException_klass), Klass*) \
coleenp@3656 639 static_field(SystemDictionary, WK_KLASS(VirtualMachineError_klass), Klass*) \
coleenp@3656 640 static_field(SystemDictionary, WK_KLASS(OutOfMemoryError_klass), Klass*) \
coleenp@3656 641 static_field(SystemDictionary, WK_KLASS(StackOverflowError_klass), Klass*) \
coleenp@3656 642 static_field(SystemDictionary, WK_KLASS(ProtectionDomain_klass), Klass*) \
coleenp@3656 643 static_field(SystemDictionary, WK_KLASS(AccessControlContext_klass), Klass*) \
coleenp@3656 644 static_field(SystemDictionary, WK_KLASS(Reference_klass), Klass*) \
coleenp@3656 645 static_field(SystemDictionary, WK_KLASS(SoftReference_klass), Klass*) \
coleenp@3656 646 static_field(SystemDictionary, WK_KLASS(WeakReference_klass), Klass*) \
coleenp@3656 647 static_field(SystemDictionary, WK_KLASS(FinalReference_klass), Klass*) \
coleenp@3656 648 static_field(SystemDictionary, WK_KLASS(PhantomReference_klass), Klass*) \
coleenp@3656 649 static_field(SystemDictionary, WK_KLASS(Finalizer_klass), Klass*) \
coleenp@3656 650 static_field(SystemDictionary, WK_KLASS(Thread_klass), Klass*) \
coleenp@3656 651 static_field(SystemDictionary, WK_KLASS(ThreadGroup_klass), Klass*) \
coleenp@3656 652 static_field(SystemDictionary, WK_KLASS(Properties_klass), Klass*) \
coleenp@3656 653 static_field(SystemDictionary, WK_KLASS(StringBuffer_klass), Klass*) \
coleenp@3656 654 static_field(SystemDictionary, WK_KLASS(MethodHandle_klass), Klass*) \
coleenp@3656 655 static_field(SystemDictionary, _box_klasses[0], Klass*) \
duke@0 656 static_field(SystemDictionary, _java_system_loader, oop) \
duke@0 657 \
never@2733 658 /*************/ \
never@2733 659 /* vmSymbols */ \
never@2733 660 /*************/ \
never@2733 661 \
never@2733 662 static_field(vmSymbols, _symbols[0], Symbol*) \
never@2733 663 \
duke@0 664 /*******************/ \
duke@0 665 /* HashtableBucket */ \
duke@0 666 /*******************/ \
duke@0 667 \
zgu@3505 668 nonstatic_field(HashtableBucket<mtInternal>, _entry, BasicHashtableEntry<mtInternal>*) \
duke@0 669 \
duke@0 670 /******************/ \
duke@0 671 /* HashtableEntry */ \
duke@0 672 /******************/ \
duke@0 673 \
zgu@3505 674 nonstatic_field(BasicHashtableEntry<mtInternal>, _next, BasicHashtableEntry<mtInternal>*) \
zgu@3505 675 nonstatic_field(BasicHashtableEntry<mtInternal>, _hash, unsigned int) \
zgu@3505 676 nonstatic_field(IntptrHashtableEntry, _literal, intptr_t) \
duke@0 677 \
duke@0 678 /*************/ \
duke@0 679 /* Hashtable */ \
duke@0 680 /*************/ \
duke@0 681 \
zgu@3505 682 nonstatic_field(BasicHashtable<mtInternal>, _table_size, int) \
zgu@3505 683 nonstatic_field(BasicHashtable<mtInternal>, _buckets, HashtableBucket<mtInternal>*) \
zgu@3505 684 nonstatic_field(BasicHashtable<mtInternal>, _free_list, BasicHashtableEntry<mtInternal>*) \
zgu@3505 685 nonstatic_field(BasicHashtable<mtInternal>, _first_free_entry, char*) \
zgu@3505 686 nonstatic_field(BasicHashtable<mtInternal>, _end_block, char*) \
zgu@3505 687 nonstatic_field(BasicHashtable<mtInternal>, _entry_size, int) \
duke@0 688 \
duke@0 689 /*******************/ \
duke@0 690 /* DictionaryEntry */ \
duke@0 691 /*******************/ \
duke@0 692 \
coleenp@3656 693 nonstatic_field(DictionaryEntry, _loader_data, ClassLoaderData*) \
duke@0 694 nonstatic_field(DictionaryEntry, _pd_set, ProtectionDomainEntry*) \
duke@0 695 \
duke@0 696 /********************/ \
duke@0 697 \
coleenp@3656 698 nonstatic_field(PlaceholderEntry, _loader_data, ClassLoaderData*) \
duke@0 699 \
duke@0 700 /**************************/ \
duke@0 701 /* ProctectionDomainEntry */ \
duke@0 702 /**************************/ \
duke@0 703 \
duke@0 704 nonstatic_field(ProtectionDomainEntry, _next, ProtectionDomainEntry*) \
duke@0 705 nonstatic_field(ProtectionDomainEntry, _protection_domain, oop) \
duke@0 706 \
duke@0 707 /*************************/ \
duke@0 708 /* LoaderConstraintEntry */ \
duke@0 709 /*************************/ \
duke@0 710 \
coleenp@2069 711 nonstatic_field(LoaderConstraintEntry, _name, Symbol*) \
duke@0 712 nonstatic_field(LoaderConstraintEntry, _num_loaders, int) \
duke@0 713 nonstatic_field(LoaderConstraintEntry, _max_loaders, int) \
coleenp@3656 714 nonstatic_field(LoaderConstraintEntry, _loaders, ClassLoaderData**) \
coleenp@3656 715 \
coleenp@3656 716 nonstatic_field(ClassLoaderData, _class_loader, oop) \
coleenp@3656 717 nonstatic_field(ClassLoaderData, _next, ClassLoaderData*) \
coleenp@3656 718 \
coleenp@3656 719 static_field(ClassLoaderDataGraph, _head, ClassLoaderData*) \
duke@0 720 \
never@2713 721 /*******************/ \
never@2713 722 /* GrowableArrays */ \
never@2713 723 /*******************/ \
never@2713 724 \
never@2713 725 nonstatic_field(GenericGrowableArray, _len, int) \
never@2713 726 nonstatic_field(GenericGrowableArray, _max, int) \
never@2713 727 nonstatic_field(GenericGrowableArray, _arena, Arena*) \
never@2713 728 nonstatic_field(GrowableArray<int>, _data, int*) \
never@2713 729 \
duke@0 730 /********************************/ \
duke@0 731 /* CodeCache (NOTE: incomplete) */ \
duke@0 732 /********************************/ \
duke@0 733 \
duke@0 734 static_field(CodeCache, _heap, CodeHeap*) \
jrose@989 735 static_field(CodeCache, _scavenge_root_nmethods, nmethod*) \
duke@0 736 \
duke@0 737 /*******************************/ \
duke@0 738 /* CodeHeap (NOTE: incomplete) */ \
duke@0 739 /*******************************/ \
duke@0 740 \
duke@0 741 nonstatic_field(CodeHeap, _memory, VirtualSpace) \
duke@0 742 nonstatic_field(CodeHeap, _segmap, VirtualSpace) \
duke@0 743 nonstatic_field(CodeHeap, _log2_segment_size, int) \
duke@0 744 nonstatic_field(HeapBlock, _header, HeapBlock::Header) \
duke@0 745 nonstatic_field(HeapBlock::Header, _length, size_t) \
duke@0 746 nonstatic_field(HeapBlock::Header, _used, bool) \
duke@0 747 \
duke@0 748 /**********************************/ \
duke@0 749 /* Interpreter (NOTE: incomplete) */ \
duke@0 750 /**********************************/ \
duke@0 751 \
duke@0 752 static_field(AbstractInterpreter, _code, StubQueue*) \
duke@0 753 \
duke@0 754 /****************************/ \
duke@0 755 /* Stubs (NOTE: incomplete) */ \
duke@0 756 /****************************/ \
duke@0 757 \
duke@0 758 nonstatic_field(StubQueue, _stub_buffer, address) \
duke@0 759 nonstatic_field(StubQueue, _buffer_limit, int) \
duke@0 760 nonstatic_field(StubQueue, _queue_begin, int) \
duke@0 761 nonstatic_field(StubQueue, _queue_end, int) \
duke@0 762 nonstatic_field(StubQueue, _number_of_stubs, int) \
duke@0 763 nonstatic_field(InterpreterCodelet, _size, int) \
duke@0 764 nonstatic_field(InterpreterCodelet, _description, const char*) \
duke@0 765 nonstatic_field(InterpreterCodelet, _bytecode, Bytecodes::Code) \
duke@0 766 \
duke@0 767 /***********************************/ \
duke@0 768 /* StubRoutines (NOTE: incomplete) */ \
duke@0 769 /***********************************/ \
duke@0 770 \
duke@0 771 static_field(StubRoutines, _call_stub_return_address, address) \
duke@0 772 \
duke@0 773 /***************************************/ \
duke@0 774 /* PcDesc and other compiled code info */ \
duke@0 775 /***************************************/ \
duke@0 776 \
duke@0 777 nonstatic_field(PcDesc, _pc_offset, int) \
duke@0 778 nonstatic_field(PcDesc, _scope_decode_offset, int) \
kvn@1040 779 nonstatic_field(PcDesc, _obj_decode_offset, int) \
never@2683 780 nonstatic_field(PcDesc, _flags, int) \
duke@0 781 \
duke@0 782 /***************************************************/ \
duke@0 783 /* CodeBlobs (NOTE: incomplete, but only a little) */ \
duke@0 784 /***************************************************/ \
duke@0 785 \
duke@0 786 nonstatic_field(CodeBlob, _name, const char*) \
duke@0 787 nonstatic_field(CodeBlob, _size, int) \
duke@0 788 nonstatic_field(CodeBlob, _header_size, int) \
duke@0 789 nonstatic_field(CodeBlob, _relocation_size, int) \
twisti@1672 790 nonstatic_field(CodeBlob, _content_offset, int) \
twisti@1672 791 nonstatic_field(CodeBlob, _code_offset, int) \
duke@0 792 nonstatic_field(CodeBlob, _frame_complete_offset, int) \
duke@0 793 nonstatic_field(CodeBlob, _data_offset, int) \
duke@0 794 nonstatic_field(CodeBlob, _frame_size, int) \
duke@0 795 nonstatic_field(CodeBlob, _oop_maps, OopMapSet*) \
duke@0 796 \
never@2683 797 nonstatic_field(RuntimeStub, _caller_must_gc_arguments, bool) \
never@2683 798 \
duke@0 799 /**************************************************/ \
duke@0 800 /* NMethods (NOTE: incomplete, but only a little) */ \
duke@0 801 /**************************************************/ \
duke@0 802 \
coleenp@3656 803 nonstatic_field(nmethod, _method, Method*) \
duke@0 804 nonstatic_field(nmethod, _entry_bci, int) \
jrose@989 805 nonstatic_field(nmethod, _osr_link, nmethod*) \
jrose@989 806 nonstatic_field(nmethod, _scavenge_root_link, nmethod*) \
jrose@989 807 nonstatic_field(nmethod, _scavenge_root_state, jbyte) \
never@2494 808 nonstatic_field(nmethod, _state, unsigned char) \
duke@0 809 nonstatic_field(nmethod, _exception_offset, int) \
duke@0 810 nonstatic_field(nmethod, _deoptimize_offset, int) \
never@2683 811 nonstatic_field(nmethod, _deoptimize_mh_offset, int) \
duke@0 812 nonstatic_field(nmethod, _orig_pc_offset, int) \
duke@0 813 nonstatic_field(nmethod, _stub_offset, int) \
twisti@1484 814 nonstatic_field(nmethod, _consts_offset, int) \
twisti@1484 815 nonstatic_field(nmethod, _oops_offset, int) \
coleenp@3656 816 nonstatic_field(nmethod, _metadata_offset, int) \
duke@0 817 nonstatic_field(nmethod, _scopes_data_offset, int) \
duke@0 818 nonstatic_field(nmethod, _scopes_pcs_offset, int) \
duke@0 819 nonstatic_field(nmethod, _dependencies_offset, int) \
duke@0 820 nonstatic_field(nmethod, _handler_table_offset, int) \
duke@0 821 nonstatic_field(nmethod, _nul_chk_table_offset, int) \
duke@0 822 nonstatic_field(nmethod, _nmethod_end_offset, int) \
duke@0 823 nonstatic_field(nmethod, _entry_point, address) \
duke@0 824 nonstatic_field(nmethod, _verified_entry_point, address) \
duke@0 825 nonstatic_field(nmethod, _osr_entry_point, address) \
duke@0 826 nonstatic_field(nmethod, _lock_count, jint) \
duke@0 827 nonstatic_field(nmethod, _stack_traversal_mark, long) \
never@2494 828 nonstatic_field(nmethod, _compile_id, int) \
iignatyev@4690 829 nonstatic_field(nmethod, _comp_level, int) \
never@2713 830 nonstatic_field(nmethod, _exception_cache, ExceptionCache*) \
never@2494 831 nonstatic_field(nmethod, _marked_for_deoptimization, bool) \
twisti@3582 832 \
twisti@3582 833 unchecked_c2_static_field(Deoptimization, _trap_reason_name, void*) \
never@2713 834 \
duke@0 835 /********************************/ \
duke@0 836 /* JavaCalls (NOTE: incomplete) */ \
duke@0 837 /********************************/ \
duke@0 838 \
duke@0 839 nonstatic_field(JavaCallWrapper, _anchor, JavaFrameAnchor) \
duke@0 840 /********************************/ \
duke@0 841 /* JavaFrameAnchor (NOTE: incomplete) */ \
duke@0 842 /********************************/ \
duke@0 843 volatile_nonstatic_field(JavaFrameAnchor, _last_Java_sp, intptr_t*) \
duke@0 844 volatile_nonstatic_field(JavaFrameAnchor, _last_Java_pc, address) \
duke@0 845 \
duke@0 846 /******************************/ \
duke@0 847 /* Threads (NOTE: incomplete) */ \
duke@0 848 /******************************/ \
duke@0 849 \
duke@0 850 static_field(Threads, _thread_list, JavaThread*) \
duke@0 851 static_field(Threads, _number_of_threads, int) \
duke@0 852 static_field(Threads, _number_of_non_daemon_threads, int) \
duke@0 853 static_field(Threads, _return_code, int) \
duke@0 854 \
never@2713 855 nonstatic_field(ThreadShadow, _pending_exception, oop) \
never@2713 856 nonstatic_field(ThreadShadow, _exception_file, const char*) \
never@2713 857 nonstatic_field(ThreadShadow, _exception_line, int) \
duke@0 858 volatile_nonstatic_field(Thread, _suspend_flags, uint32_t) \
duke@0 859 nonstatic_field(Thread, _active_handles, JNIHandleBlock*) \
duke@0 860 nonstatic_field(Thread, _tlab, ThreadLocalAllocBuffer) \
duke@0 861 nonstatic_field(Thread, _current_pending_monitor, ObjectMonitor*) \
duke@0 862 nonstatic_field(Thread, _current_pending_monitor_is_from_java, bool) \
duke@0 863 nonstatic_field(Thread, _current_waiting_monitor, ObjectMonitor*) \
duke@0 864 nonstatic_field(NamedThread, _name, char*) \
minqi@1119 865 nonstatic_field(NamedThread, _processed_thread, JavaThread*) \
duke@0 866 nonstatic_field(JavaThread, _next, JavaThread*) \
duke@0 867 nonstatic_field(JavaThread, _threadObj, oop) \
duke@0 868 nonstatic_field(JavaThread, _anchor, JavaFrameAnchor) \
never@2713 869 nonstatic_field(JavaThread, _vm_result, oop) \
coleenp@3656 870 nonstatic_field(JavaThread, _vm_result_2, Metadata*) \
never@2713 871 nonstatic_field(JavaThread, _pending_async_exception, oop) \
never@2713 872 volatile_nonstatic_field(JavaThread, _exception_oop, oop) \
never@2713 873 volatile_nonstatic_field(JavaThread, _exception_pc, address) \
never@2713 874 nonstatic_field(JavaThread, _is_compiling, bool) \
never@2713 875 nonstatic_field(JavaThread, _special_runtime_exit_condition, JavaThread::AsyncRequests) \
never@2713 876 nonstatic_field(JavaThread, _saved_exception_pc, address) \
duke@0 877 volatile_nonstatic_field(JavaThread, _thread_state, JavaThreadState) \
duke@0 878 nonstatic_field(JavaThread, _osthread, OSThread*) \
duke@0 879 nonstatic_field(JavaThread, _stack_base, address) \
duke@0 880 nonstatic_field(JavaThread, _stack_size, size_t) \
never@2713 881 nonstatic_field(JavaThread, _vframe_array_head, vframeArray*) \
never@2713 882 nonstatic_field(JavaThread, _vframe_array_last, vframeArray*) \
never@2713 883 nonstatic_field(Thread, _resource_area, ResourceArea*) \
never@2713 884 nonstatic_field(CompilerThread, _env, ciEnv*) \
duke@0 885 \
duke@0 886 /************/ \
duke@0 887 /* OSThread */ \
duke@0 888 /************/ \
duke@0 889 \
dholmes@2241 890 volatile_nonstatic_field(OSThread, _interrupted, jint) \
duke@0 891 \
duke@0 892 /************************/ \
duke@0 893 /* OopMap and OopMapSet */ \
duke@0 894 /************************/ \
duke@0 895 \
duke@0 896 nonstatic_field(OopMap, _pc_offset, int) \
duke@0 897 nonstatic_field(OopMap, _omv_count, int) \
duke@0 898 nonstatic_field(OopMap, _omv_data_size, int) \
duke@0 899 nonstatic_field(OopMap, _omv_data, unsigned char*) \
duke@0 900 nonstatic_field(OopMap, _write_stream, CompressedWriteStream*) \
duke@0 901 nonstatic_field(OopMapSet, _om_count, int) \
duke@0 902 nonstatic_field(OopMapSet, _om_size, int) \
duke@0 903 nonstatic_field(OopMapSet, _om_data, OopMap**) \
duke@0 904 \
duke@0 905 /*********************************/ \
duke@0 906 /* JNIHandles and JNIHandleBlock */ \
duke@0 907 /*********************************/ \
duke@0 908 static_field(JNIHandles, _global_handles, JNIHandleBlock*) \
duke@0 909 static_field(JNIHandles, _weak_global_handles, JNIHandleBlock*) \
duke@0 910 static_field(JNIHandles, _deleted_handle, oop) \
duke@0 911 \
duke@0 912 unchecked_nonstatic_field(JNIHandleBlock, _handles, JNIHandleBlock::block_size_in_oops * sizeof(Oop)) /* Note: no type */ \
duke@0 913 nonstatic_field(JNIHandleBlock, _top, int) \
duke@0 914 nonstatic_field(JNIHandleBlock, _next, JNIHandleBlock*) \
duke@0 915 \
duke@0 916 /********************/ \
duke@0 917 /* CompressedStream */ \
duke@0 918 /********************/ \
duke@0 919 \
duke@0 920 nonstatic_field(CompressedStream, _buffer, u_char*) \
duke@0 921 nonstatic_field(CompressedStream, _position, int) \
duke@0 922 \
duke@0 923 /*********************************/ \
duke@0 924 /* VMRegImpl (NOTE: incomplete) */ \
duke@0 925 /*********************************/ \
duke@0 926 \
duke@0 927 static_field(VMRegImpl, regName[0], const char*) \
duke@0 928 static_field(VMRegImpl, stack0, VMReg) \
duke@0 929 \
duke@0 930 /*******************************/ \
duke@0 931 /* Runtime1 (NOTE: incomplete) */ \
duke@0 932 /*******************************/ \
duke@0 933 \
never@2713 934 unchecked_c1_static_field(Runtime1, _blobs, sizeof(Runtime1::_blobs)) /* NOTE: no type */ \
never@2713 935 \
never@2713 936 /**************/ \
never@2713 937 /* allocation */ \
never@2713 938 /**************/ \
never@2713 939 \
never@2713 940 nonstatic_field(Chunk, _next, Chunk*) \
never@2713 941 nonstatic_field(Chunk, _len, const size_t) \
never@2713 942 \
never@2713 943 nonstatic_field(Arena, _first, Chunk*) \
never@2713 944 nonstatic_field(Arena, _chunk, Chunk*) \
never@2713 945 nonstatic_field(Arena, _hwm, char*) \
never@2713 946 nonstatic_field(Arena, _max, char*) \
never@2713 947 \
never@2713 948 /************/ \
never@2713 949 /* CI */ \
never@2713 950 /************/ \
never@2713 951 \
never@2713 952 nonstatic_field(ciEnv, _system_dictionary_modification_counter, int) \
never@2713 953 nonstatic_field(ciEnv, _compiler_data, void*) \
never@2713 954 nonstatic_field(ciEnv, _failure_reason, const char*) \
never@2713 955 nonstatic_field(ciEnv, _factory, ciObjectFactory*) \
never@2713 956 nonstatic_field(ciEnv, _dependencies, Dependencies*) \
never@2713 957 nonstatic_field(ciEnv, _task, CompileTask*) \
never@2713 958 nonstatic_field(ciEnv, _arena, Arena*) \
never@2713 959 \
coleenp@3656 960 nonstatic_field(ciBaseObject, _ident, uint) \
coleenp@3656 961 \
never@2713 962 nonstatic_field(ciObject, _handle, jobject) \
never@2713 963 nonstatic_field(ciObject, _klass, ciKlass*) \
never@2713 964 \
coleenp@3656 965 nonstatic_field(ciMetadata, _metadata, Metadata*) \
coleenp@3656 966 \
never@2713 967 nonstatic_field(ciSymbol, _symbol, Symbol*) \
never@2713 968 \
never@2713 969 nonstatic_field(ciType, _basic_type, BasicType) \
never@2713 970 \
never@2713 971 nonstatic_field(ciKlass, _name, ciSymbol*) \
never@2713 972 \
never@2713 973 nonstatic_field(ciArrayKlass, _dimension, jint) \
never@2713 974 \
never@2713 975 nonstatic_field(ciObjArrayKlass, _element_klass, ciKlass*) \
never@2713 976 nonstatic_field(ciObjArrayKlass, _base_element_klass, ciKlass*) \
never@2713 977 \
coleenp@3656 978 nonstatic_field(ciInstanceKlass, _init_state, InstanceKlass::ClassState) \
never@2713 979 nonstatic_field(ciInstanceKlass, _is_shared, bool) \
never@2713 980 \
never@2713 981 nonstatic_field(ciMethod, _interpreter_invocation_count, int) \
never@2713 982 nonstatic_field(ciMethod, _interpreter_throwout_count, int) \
minqi@3897 983 nonstatic_field(ciMethod, _instructions_size, int) \
never@2713 984 \
never@2713 985 nonstatic_field(ciMethodData, _data_size, int) \
never@2713 986 nonstatic_field(ciMethodData, _state, u_char) \
never@2713 987 nonstatic_field(ciMethodData, _extra_data_size, int) \
never@2713 988 nonstatic_field(ciMethodData, _data, intptr_t*) \
never@2713 989 nonstatic_field(ciMethodData, _hint_di, int) \
never@2713 990 nonstatic_field(ciMethodData, _eflags, intx) \
never@2713 991 nonstatic_field(ciMethodData, _arg_local, intx) \
never@2713 992 nonstatic_field(ciMethodData, _arg_stack, intx) \
never@2713 993 nonstatic_field(ciMethodData, _arg_returned, intx) \
never@2713 994 nonstatic_field(ciMethodData, _current_mileage, int) \
coleenp@3656 995 nonstatic_field(ciMethodData, _orig, MethodData) \
never@2713 996 \
never@2713 997 nonstatic_field(ciField, _holder, ciInstanceKlass*) \
never@2713 998 nonstatic_field(ciField, _name, ciSymbol*) \
never@2713 999 nonstatic_field(ciField, _signature, ciSymbol*) \
never@2713 1000 nonstatic_field(ciField, _offset, int) \
never@2713 1001 nonstatic_field(ciField, _is_constant, bool) \
never@2713 1002 nonstatic_field(ciField, _constant_value, ciConstant) \
never@2713 1003 \
coleenp@3656 1004 nonstatic_field(ciObjectFactory, _ci_metadata, GrowableArray<ciMetadata*>*) \
never@2713 1005 nonstatic_field(ciObjectFactory, _symbols, GrowableArray<ciSymbol*>*) \
never@2713 1006 nonstatic_field(ciObjectFactory, _unloaded_methods, GrowableArray<ciMethod*>*) \
never@2713 1007 \
never@2713 1008 nonstatic_field(ciConstant, _type, BasicType) \
never@2713 1009 nonstatic_field(ciConstant, _value._int, jint) \
never@2713 1010 nonstatic_field(ciConstant, _value._long, jlong) \
never@2713 1011 nonstatic_field(ciConstant, _value._float, jfloat) \
never@2713 1012 nonstatic_field(ciConstant, _value._double, jdouble) \
never@2713 1013 nonstatic_field(ciConstant, _value._object, ciObject*) \
duke@0 1014 \
duke@0 1015 /************/ \
duke@0 1016 /* Monitors */ \
duke@0 1017 /************/ \
duke@0 1018 \
duke@0 1019 volatile_nonstatic_field(ObjectMonitor, _header, markOop) \
duke@0 1020 unchecked_nonstatic_field(ObjectMonitor, _object, sizeof(void *)) /* NOTE: no type */ \
duke@0 1021 unchecked_nonstatic_field(ObjectMonitor, _owner, sizeof(void *)) /* NOTE: no type */ \
duke@0 1022 volatile_nonstatic_field(ObjectMonitor, _count, intptr_t) \
duke@0 1023 volatile_nonstatic_field(ObjectMonitor, _waiters, intptr_t) \
duke@0 1024 volatile_nonstatic_field(ObjectMonitor, _recursions, intptr_t) \
duke@0 1025 nonstatic_field(ObjectMonitor, FreeNext, ObjectMonitor*) \
duke@0 1026 volatile_nonstatic_field(BasicLock, _displaced_header, markOop) \
duke@0 1027 nonstatic_field(BasicObjectLock, _lock, BasicLock) \
duke@0 1028 nonstatic_field(BasicObjectLock, _obj, oop) \
duke@0 1029 static_field(ObjectSynchronizer, gBlockList, ObjectMonitor*) \
duke@0 1030 \
duke@0 1031 /*********************/ \
duke@0 1032 /* Matcher (C2 only) */ \
duke@0 1033 /*********************/ \
duke@0 1034 \
never@2713 1035 unchecked_c2_static_field(Matcher, _regEncode, sizeof(Matcher::_regEncode)) /* NOTE: no type */ \
never@2713 1036 \
never@2713 1037 c2_nonstatic_field(Node, _in, Node**) \
never@2713 1038 c2_nonstatic_field(Node, _out, Node**) \
never@2713 1039 c2_nonstatic_field(Node, _cnt, node_idx_t) \
never@2713 1040 c2_nonstatic_field(Node, _max, node_idx_t) \
never@2713 1041 c2_nonstatic_field(Node, _outcnt, node_idx_t) \
never@2713 1042 c2_nonstatic_field(Node, _outmax, node_idx_t) \
never@2713 1043 c2_nonstatic_field(Node, _idx, const node_idx_t) \
never@2713 1044 c2_nonstatic_field(Node, _class_id, jushort) \
never@2713 1045 c2_nonstatic_field(Node, _flags, jushort) \
never@2713 1046 \
never@2713 1047 c2_nonstatic_field(Compile, _root, RootNode*) \
never@2713 1048 c2_nonstatic_field(Compile, _unique, uint) \
never@2713 1049 c2_nonstatic_field(Compile, _entry_bci, int) \
never@2713 1050 c2_nonstatic_field(Compile, _top, Node*) \
never@2713 1051 c2_nonstatic_field(Compile, _cfg, PhaseCFG*) \
never@2713 1052 c2_nonstatic_field(Compile, _regalloc, PhaseRegAlloc*) \
never@2713 1053 c2_nonstatic_field(Compile, _method, ciMethod*) \
never@2713 1054 c2_nonstatic_field(Compile, _compile_id, const int) \
never@2713 1055 c2_nonstatic_field(Compile, _save_argument_registers, const bool) \
never@2713 1056 c2_nonstatic_field(Compile, _subsume_loads, const bool) \
never@2713 1057 c2_nonstatic_field(Compile, _do_escape_analysis, const bool) \
kvn@4772 1058 c2_nonstatic_field(Compile, _eliminate_boxing, const bool) \
never@2713 1059 c2_nonstatic_field(Compile, _ilt, InlineTree*) \
never@2713 1060 \
never@2713 1061 c2_nonstatic_field(InlineTree, _caller_jvms, JVMState*) \
never@2713 1062 c2_nonstatic_field(InlineTree, _method, ciMethod*) \
never@2713 1063 c2_nonstatic_field(InlineTree, _caller_tree, InlineTree*) \
never@2713 1064 c2_nonstatic_field(InlineTree, _subtrees, GrowableArray<InlineTree*>) \
never@2713 1065 \
never@2713 1066 c2_nonstatic_field(OptoRegPair, _first, short) \
never@2713 1067 c2_nonstatic_field(OptoRegPair, _second, short) \
never@2713 1068 \
never@2713 1069 c2_nonstatic_field(JVMState, _caller, JVMState*) \
never@2713 1070 c2_nonstatic_field(JVMState, _depth, uint) \
never@2713 1071 c2_nonstatic_field(JVMState, _locoff, uint) \
never@2713 1072 c2_nonstatic_field(JVMState, _stkoff, uint) \
never@2713 1073 c2_nonstatic_field(JVMState, _monoff, uint) \
never@2713 1074 c2_nonstatic_field(JVMState, _scloff, uint) \
never@2713 1075 c2_nonstatic_field(JVMState, _endoff, uint) \
never@2713 1076 c2_nonstatic_field(JVMState, _sp, uint) \
never@2713 1077 c2_nonstatic_field(JVMState, _bci, int) \
never@2713 1078 c2_nonstatic_field(JVMState, _method, ciMethod*) \
never@2713 1079 c2_nonstatic_field(JVMState, _map, SafePointNode*) \
never@2713 1080 \
never@2713 1081 c2_nonstatic_field(SafePointNode, _jvms, JVMState* const) \
never@2713 1082 \
never@2713 1083 c2_nonstatic_field(MachSafePointNode, _jvms, JVMState*) \
never@2713 1084 c2_nonstatic_field(MachSafePointNode, _jvmadj, uint) \
never@2713 1085 \
never@2713 1086 c2_nonstatic_field(MachIfNode, _prob, jfloat) \
never@2713 1087 c2_nonstatic_field(MachIfNode, _fcnt, jfloat) \
never@2713 1088 \
never@2713 1089 c2_nonstatic_field(CallNode, _entry_point, address) \
never@2713 1090 \
never@2713 1091 c2_nonstatic_field(CallJavaNode, _method, ciMethod*) \
never@2713 1092 \
never@2713 1093 c2_nonstatic_field(CallRuntimeNode, _name, const char*) \
never@2713 1094 \
never@2713 1095 c2_nonstatic_field(CallStaticJavaNode, _name, const char*) \
never@2713 1096 \
never@2713 1097 c2_nonstatic_field(MachCallJavaNode, _method, ciMethod*) \
never@2713 1098 c2_nonstatic_field(MachCallJavaNode, _bci, int) \
never@2713 1099 \
never@2713 1100 c2_nonstatic_field(MachCallStaticJavaNode, _name, const char*) \
never@2713 1101 \
never@2713 1102 c2_nonstatic_field(MachCallRuntimeNode, _name, const char*) \
never@2713 1103 \
never@2713 1104 c2_nonstatic_field(PhaseCFG, _num_blocks, uint) \
never@2713 1105 c2_nonstatic_field(PhaseCFG, _blocks, Block_List) \
never@2713 1106 c2_nonstatic_field(PhaseCFG, _bbs, Block_Array) \
never@2713 1107 c2_nonstatic_field(PhaseCFG, _broot, Block*) \
never@2713 1108 \
never@2713 1109 c2_nonstatic_field(PhaseRegAlloc, _node_regs, OptoRegPair*) \
never@2713 1110 c2_nonstatic_field(PhaseRegAlloc, _node_regs_max_index, uint) \
never@2713 1111 c2_nonstatic_field(PhaseRegAlloc, _framesize, uint) \
never@2713 1112 c2_nonstatic_field(PhaseRegAlloc, _max_reg, OptoReg::Name) \
never@2713 1113 \
never@2713 1114 c2_nonstatic_field(PhaseChaitin, _trip_cnt, int) \
never@2713 1115 c2_nonstatic_field(PhaseChaitin, _alternate, int) \
never@2713 1116 c2_nonstatic_field(PhaseChaitin, _lo_degree, uint) \
never@2713 1117 c2_nonstatic_field(PhaseChaitin, _lo_stk_degree, uint) \
never@2713 1118 c2_nonstatic_field(PhaseChaitin, _hi_degree, uint) \
never@2713 1119 c2_nonstatic_field(PhaseChaitin, _simplified, uint) \
never@2713 1120 \
never@2713 1121 c2_nonstatic_field(Block, _nodes, Node_List) \
never@2713 1122 c2_nonstatic_field(Block, _succs, Block_Array) \
never@2713 1123 c2_nonstatic_field(Block, _num_succs, uint) \
never@2713 1124 c2_nonstatic_field(Block, _pre_order, uint) \
never@2713 1125 c2_nonstatic_field(Block, _dom_depth, uint) \
never@2713 1126 c2_nonstatic_field(Block, _idom, Block*) \
never@2713 1127 c2_nonstatic_field(Block, _freq, jfloat) \
never@2713 1128 \
never@2713 1129 c2_nonstatic_field(CFGElement, _freq, jfloat) \
never@2713 1130 \
never@2713 1131 c2_nonstatic_field(Block_List, _cnt, uint) \
never@2713 1132 \
never@2713 1133 c2_nonstatic_field(Block_Array, _size, uint) \
never@2713 1134 c2_nonstatic_field(Block_Array, _blocks, Block**) \
never@2713 1135 c2_nonstatic_field(Block_Array, _arena, Arena*) \
never@2713 1136 \
never@2713 1137 c2_nonstatic_field(Node_List, _cnt, uint) \
never@2713 1138 \
never@2713 1139 c2_nonstatic_field(Node_Array, _max, uint) \
never@2713 1140 c2_nonstatic_field(Node_Array, _nodes, Node**) \
never@2713 1141 c2_nonstatic_field(Node_Array, _a, Arena*) \
never@2713 1142 \
duke@0 1143 \
duke@0 1144 /*********************/ \
duke@0 1145 /* -XX flags */ \
duke@0 1146 /*********************/ \
duke@0 1147 \
duke@0 1148 nonstatic_field(Flag, type, const char*) \
duke@0 1149 nonstatic_field(Flag, name, const char*) \
duke@0 1150 unchecked_nonstatic_field(Flag, addr, sizeof(void*)) /* NOTE: no type */ \
duke@0 1151 nonstatic_field(Flag, kind, const char*) \
never@2713 1152 nonstatic_field(Flag, origin, FlagValueOrigin) \
duke@0 1153 static_field(Flag, flags, Flag*) \
duke@0 1154 static_field(Flag, numFlags, size_t) \
duke@0 1155 \
duke@0 1156 /*************************/ \
duke@0 1157 /* JDK / VM version info */ \
duke@0 1158 /*************************/ \
duke@0 1159 \
duke@0 1160 static_field(Abstract_VM_Version, _s_vm_release, const char*) \
duke@0 1161 static_field(Abstract_VM_Version, _s_internal_vm_info_string, const char*) \
duke@0 1162 static_field(Abstract_VM_Version, _vm_major_version, int) \
duke@0 1163 static_field(Abstract_VM_Version, _vm_minor_version, int) \
duke@0 1164 static_field(Abstract_VM_Version, _vm_build_number, int) \
stefank@4188 1165 static_field(Abstract_VM_Version, _reserve_for_allocation_prefetch, int) \
duke@0 1166 \
kamg@242 1167 static_field(JDK_Version, _current, JDK_Version) \
kamg@242 1168 nonstatic_field(JDK_Version, _partially_initialized, bool) \
kamg@242 1169 nonstatic_field(JDK_Version, _major, unsigned char) \
duke@0 1170 \
never@2713 1171 /*************************/ \
never@2713 1172 /* JVMTI */ \
never@2713 1173 /*************************/ \
duke@0 1174 \
jprovino@3796 1175 JVMTI_STRUCTS(static_field) \
duke@0 1176 \
duke@0 1177 /*************/ \
duke@0 1178 /* Arguments */ \
duke@0 1179 /*************/ \
duke@0 1180 \
duke@0 1181 static_field(Arguments, _jvm_flags_array, char**) \
duke@0 1182 static_field(Arguments, _num_jvm_flags, int) \
duke@0 1183 static_field(Arguments, _jvm_args_array, char**) \
duke@0 1184 static_field(Arguments, _num_jvm_args, int) \
duke@0 1185 static_field(Arguments, _java_command, char*) \
duke@0 1186 \
coleenp@3656 1187 /************/ \
coleenp@3656 1188 /* Array<T> */ \
coleenp@3656 1189 /************/ \
coleenp@3656 1190 \
coleenp@3656 1191 nonstatic_field(Array<int>, _length, int) \
coleenp@3656 1192 unchecked_nonstatic_field(Array<int>, _data, sizeof(int)) \
coleenp@3656 1193 unchecked_nonstatic_field(Array<u1>, _data, sizeof(u1)) \
coleenp@3656 1194 unchecked_nonstatic_field(Array<u2>, _data, sizeof(u2)) \
coleenp@3656 1195 unchecked_nonstatic_field(Array<Method*>, _data, sizeof(Method*)) \
coleenp@3656 1196 unchecked_nonstatic_field(Array<Klass*>, _data, sizeof(Klass*)) \
coleenp@3656 1197 \
never@2231 1198 /*********************************/ \
never@2231 1199 /* java_lang_Class fields */ \
never@2231 1200 /*********************************/ \
never@2231 1201 \
never@2712 1202 static_field(java_lang_Class, _klass_offset, int) \
never@2712 1203 static_field(java_lang_Class, _array_klass_offset, int) \
never@2712 1204 static_field(java_lang_Class, _oop_size_offset, int) \
never@2712 1205 static_field(java_lang_Class, _static_oop_field_count_offset, int) \
duke@0 1206 \
duke@0 1207 /************************/ \
duke@0 1208 /* Miscellaneous fields */ \
duke@0 1209 /************************/ \
duke@0 1210 \
coleenp@3656 1211 nonstatic_field(CompileTask, _method, Method*) \
never@2713 1212 nonstatic_field(CompileTask, _osr_bci, int) \
never@2713 1213 nonstatic_field(CompileTask, _comp_level, int) \
never@2713 1214 nonstatic_field(CompileTask, _compile_id, uint) \
never@2713 1215 nonstatic_field(CompileTask, _next, CompileTask*) \
never@2713 1216 nonstatic_field(CompileTask, _prev, CompileTask*) \
never@2713 1217 \
never@2713 1218 nonstatic_field(vframeArray, _next, vframeArray*) \
never@2713 1219 nonstatic_field(vframeArray, _original, frame) \
never@2713 1220 nonstatic_field(vframeArray, _caller, frame) \
never@2713 1221 nonstatic_field(vframeArray, _frames, int) \
never@2713 1222 \
never@2713 1223 nonstatic_field(vframeArrayElement, _frame, frame) \
never@2713 1224 nonstatic_field(vframeArrayElement, _bci, int) \
coleenp@3656 1225 nonstatic_field(vframeArrayElement, _method, Method*) \
never@2713 1226 \
never@2713 1227 nonstatic_field(AccessFlags, _flags, jint) \
never@2713 1228 nonstatic_field(elapsedTimer, _counter, jlong) \
never@2713 1229 nonstatic_field(elapsedTimer, _active, bool) \
jmasa@3825 1230 nonstatic_field(InvocationCounter, _counter, unsigned int) \
jmasa@3825 1231 volatile_nonstatic_field(FreeChunk, _size, size_t) \
jmasa@3825 1232 nonstatic_field(FreeChunk, _next, FreeChunk*) \
jmasa@3825 1233 nonstatic_field(FreeChunk, _prev, FreeChunk*) \
jmasa@3825 1234 nonstatic_field(FreeList<FreeChunk>, _size, size_t) \
jmasa@3825 1235 nonstatic_field(FreeList<Metablock>, _size, size_t) \
jmasa@3825 1236 nonstatic_field(FreeList<FreeChunk>, _count, ssize_t) \
jmasa@3825 1237 nonstatic_field(FreeList<Metablock>, _count, ssize_t) \
jmasa@3825 1238 nonstatic_field(MetablockTreeDictionary, _total_size, size_t)
duke@0 1239
duke@0 1240
duke@0 1241 //--------------------------------------------------------------------------------
duke@0 1242 // VM_TYPES
duke@0 1243 //
duke@0 1244 // This list must enumerate at least all of the types in the above
duke@0 1245 // list. For the types in the above list, the entry below must have
duke@0 1246 // exactly the same spacing since string comparisons are done in the
duke@0 1247 // code which verifies the consistency of these tables (in the debug
duke@0 1248 // build).
duke@0 1249 //
duke@0 1250 // In addition to the above types, this list is required to enumerate
duke@0 1251 // the JNI's java types, which are used to indicate the size of Java
duke@0 1252 // fields in this VM to the SA. Further, oop types are currently
duke@0 1253 // distinguished by name (i.e., ends with "oop") over in the SA.
duke@0 1254 //
duke@0 1255 // The declare_toplevel_type macro should be used to declare types
duke@0 1256 // which do not have a superclass.
duke@0 1257 //
duke@0 1258 // The declare_integer_type and declare_unsigned_integer_type macros
duke@0 1259 // are required in order to properly identify C integer types over in
duke@0 1260 // the SA. They should be used for any type which is otherwise opaque
duke@0 1261 // and which it is necessary to coerce into an integer value. This
duke@0 1262 // includes, for example, the type uintptr_t. Note that while they
duke@0 1263 // will properly identify the type's size regardless of the platform,
duke@0 1264 // since it is does not seem possible to deduce or check signedness at
duke@0 1265 // compile time using the pointer comparison tricks, it is currently
duke@0 1266 // required that the given types have the same signedness across all
duke@0 1267 // platforms.
duke@0 1268 //
duke@0 1269 // NOTE that there are platform-specific additions to this table in
duke@0 1270 // vmStructs_<os>_<cpu>.hpp.
duke@0 1271
duke@0 1272 #define VM_TYPES(declare_type, \
duke@0 1273 declare_toplevel_type, \
duke@0 1274 declare_oop_type, \
duke@0 1275 declare_integer_type, \
duke@0 1276 declare_unsigned_integer_type, \
duke@0 1277 declare_c1_toplevel_type, \
duke@0 1278 declare_c2_type, \
mikael@4068 1279 declare_c2_toplevel_type) \
duke@0 1280 \
duke@0 1281 /*************************************************************/ \
duke@0 1282 /* Java primitive types -- required by the SA implementation */ \
duke@0 1283 /* in order to determine the size of Java fields in this VM */ \
duke@0 1284 /* (the implementation looks up these names specifically) */ \
duke@0 1285 /* NOTE: since we fetch these sizes from the remote VM, we */ \
duke@0 1286 /* have a bootstrapping sequence during which it is not */ \
duke@0 1287 /* valid to fetch Java values from the remote process, only */ \
duke@0 1288 /* C integer values (of known size). NOTE also that we do */ \
duke@0 1289 /* NOT include "Java unsigned" types like juint here; since */ \
duke@0 1290 /* Java does not have unsigned primitive types, those can */ \
duke@0 1291 /* not be mapped directly and are considered to be C integer */ \
duke@0 1292 /* types in this system (see the "other types" section, */ \
duke@0 1293 /* below.) */ \
duke@0 1294 /*************************************************************/ \
duke@0 1295 \
duke@0 1296 declare_toplevel_type(jboolean) \
duke@0 1297 declare_toplevel_type(jbyte) \
duke@0 1298 declare_toplevel_type(jchar) \
duke@0 1299 declare_toplevel_type(jdouble) \
duke@0 1300 declare_toplevel_type(jfloat) \
duke@0 1301 declare_toplevel_type(jint) \
duke@0 1302 declare_toplevel_type(jlong) \
duke@0 1303 declare_toplevel_type(jshort) \
duke@0 1304 \
duke@0 1305 /*********************************************************************/ \
duke@0 1306 /* C integer types. User-defined typedefs (like "size_t" or */ \
duke@0 1307 /* "intptr_t") are guaranteed to be present with the same names over */ \
duke@0 1308 /* in the SA's type database. Names like "unsigned short" are not */ \
duke@0 1309 /* guaranteed to be visible through the SA's type database lookup */ \
duke@0 1310 /* mechanism, though they will have a Type object created for them */ \
duke@0 1311 /* and are valid types for Fields. */ \
duke@0 1312 /*********************************************************************/ \
duke@0 1313 declare_integer_type(bool) \
never@2713 1314 declare_integer_type(short) \
duke@0 1315 declare_integer_type(int) \
duke@0 1316 declare_integer_type(long) \
duke@0 1317 declare_integer_type(char) \
duke@0 1318 declare_unsigned_integer_type(unsigned char) \
never@2713 1319 declare_unsigned_integer_type(u_char) \
duke@0 1320 declare_unsigned_integer_type(unsigned int) \
never@2713 1321 declare_unsigned_integer_type(uint) \
duke@0 1322 declare_unsigned_integer_type(unsigned short) \
never@2714 1323 declare_unsigned_integer_type(jushort) \
duke@0 1324 declare_unsigned_integer_type(unsigned long) \
duke@0 1325 /* The compiler thinks this is a different type than */ \
duke@0 1326 /* unsigned short on Win32 */ \
coleenp@3656 1327 declare_unsigned_integer_type(u1) \
duke@0 1328 declare_unsigned_integer_type(u2) \
duke@0 1329 declare_unsigned_integer_type(unsigned) \
duke@0 1330 \
duke@0 1331 /*****************************/ \
duke@0 1332 /* C primitive pointer types */ \
duke@0 1333 /*****************************/ \
duke@0 1334 \
coleenp@3656 1335 declare_toplevel_type(void*) \
duke@0 1336 declare_toplevel_type(int*) \
duke@0 1337 declare_toplevel_type(char*) \
duke@0 1338 declare_toplevel_type(char**) \
duke@0 1339 declare_toplevel_type(u_char*) \
duke@0 1340 declare_toplevel_type(unsigned char*) \
duke@0 1341 \
duke@0 1342 /*******************************************************************/ \
duke@0 1343 /* Types which it will be handy to have available over in the SA */ \
duke@0 1344 /* in order to do platform-independent address -> integer coercion */ \
duke@0 1345 /* (note: these will be looked up by name) */ \
duke@0 1346 /*******************************************************************/ \
duke@0 1347 \
duke@0 1348 declare_unsigned_integer_type(size_t) \
dcubed@152 1349 declare_integer_type(ssize_t) \
duke@0 1350 declare_integer_type(intx) \
duke@0 1351 declare_integer_type(intptr_t) \
duke@0 1352 declare_unsigned_integer_type(uintx) \
duke@0 1353 declare_unsigned_integer_type(uintptr_t) \
duke@0 1354 declare_unsigned_integer_type(uint32_t) \
duke@0 1355 declare_unsigned_integer_type(uint64_t) \
duke@0 1356 \
coleenp@3656 1357 /******************************************/ \
coleenp@3656 1358 /* OopDesc hierarchy (NOTE: some missing) */ \
coleenp@3656 1359 /******************************************/ \
duke@0 1360 \
duke@0 1361 declare_toplevel_type(oopDesc) \
coleenp@3656 1362 declare_type(arrayOopDesc, oopDesc) \
coleenp@3656 1363 declare_type(objArrayOopDesc, arrayOopDesc) \
coleenp@3656 1364 declare_type(instanceOopDesc, oopDesc) \
coleenp@3656 1365 declare_type(markOopDesc, oopDesc) \
coleenp@3656 1366 \
coleenp@3656 1367 /**************************************************/ \
coleenp@3656 1368 /* MetadataOopDesc hierarchy (NOTE: some missing) */ \
coleenp@3656 1369 /**************************************************/ \
coleenp@3656 1370 \
coleenp@3656 1371 declare_toplevel_type(CompiledICHolder) \
coleenp@3656 1372 declare_toplevel_type(MetaspaceObj) \
coleenp@3656 1373 declare_type(Metadata, MetaspaceObj) \
coleenp@3656 1374 declare_type(Klass, Metadata) \
coleenp@3764 1375 declare_type(ArrayKlass, Klass) \
coleenp@3764 1376 declare_type(ObjArrayKlass, ArrayKlass) \
coleenp@3764 1377 declare_type(TypeArrayKlass, ArrayKlass) \
coleenp@3656 1378 declare_type(InstanceKlass, Klass) \
coleenp@3666 1379 declare_type(InstanceClassLoaderKlass, InstanceKlass) \
coleenp@3666 1380 declare_type(InstanceMirrorKlass, InstanceKlass) \
coleenp@3666 1381 declare_type(InstanceRefKlass, InstanceKlass) \
coleenp@3656 1382 declare_type(ConstantPool, Metadata) \
coleenp@3656 1383 declare_type(ConstantPoolCache, MetaspaceObj) \
coleenp@3656 1384 declare_type(MethodData, Metadata) \
coleenp@3656 1385 declare_type(Method, Metadata) \
jiangli@4594 1386 declare_type(MethodCounters, MetaspaceObj) \
coleenp@3656 1387 declare_type(ConstMethod, MetaspaceObj) \
coleenp@3656 1388 \
coleenp@2069 1389 declare_toplevel_type(Symbol) \
coleenp@2069 1390 declare_toplevel_type(Symbol*) \
coleenp@3656 1391 declare_toplevel_type(volatile Metadata*) \
duke@0 1392 \
never@2713 1393 declare_toplevel_type(nmethodBucket) \
never@2713 1394 \
duke@0 1395 /********/ \
duke@0 1396 /* Oops */ \
duke@0 1397 /********/ \
duke@0 1398 \
duke@0 1399 declare_oop_type(markOop) \
duke@0 1400 declare_oop_type(objArrayOop) \
duke@0 1401 declare_oop_type(oop) \
coleenp@113 1402 declare_oop_type(narrowOop) \
duke@0 1403 declare_oop_type(typeArrayOop) \
duke@0 1404 \
duke@0 1405 /*************************************/ \
duke@0 1406 /* MethodOop-related data structures */ \
duke@0 1407 /*************************************/ \
duke@0 1408 \
duke@0 1409 declare_toplevel_type(CheckedExceptionElement) \
duke@0 1410 declare_toplevel_type(LocalVariableTableElement) \
jiangli@3530 1411 declare_toplevel_type(ExceptionTableElement) \
duke@0 1412 \
coleenp@3656 1413 declare_toplevel_type(ClassLoaderData) \
coleenp@3656 1414 declare_toplevel_type(ClassLoaderDataGraph) \
coleenp@3656 1415 \
duke@0 1416 /******************************************/ \
duke@0 1417 /* Generation and space hierarchies */ \
duke@0 1418 /* (needed for run-time type information) */ \
duke@0 1419 /******************************************/ \
duke@0 1420 \
duke@0 1421 declare_toplevel_type(CollectedHeap) \
duke@0 1422 declare_type(SharedHeap, CollectedHeap) \
duke@0 1423 declare_type(GenCollectedHeap, SharedHeap) \
duke@0 1424 declare_toplevel_type(Generation) \
duke@0 1425 declare_type(DefNewGeneration, Generation) \
duke@0 1426 declare_type(CardGeneration, Generation) \
duke@0 1427 declare_type(OneContigSpaceCardGeneration, CardGeneration) \
duke@0 1428 declare_type(TenuredGeneration, OneContigSpaceCardGeneration) \
duke@0 1429 declare_toplevel_type(Space) \
duke@0 1430 declare_toplevel_type(BitMap) \
duke@0 1431 declare_type(CompactibleSpace, Space) \
duke@0 1432 declare_type(ContiguousSpace, CompactibleSpace) \
duke@0 1433 declare_type(EdenSpace, ContiguousSpace) \
duke@0 1434 declare_type(OffsetTableContigSpace, ContiguousSpace) \
duke@0 1435 declare_type(TenuredSpace, OffsetTableContigSpace) \
duke@0 1436 declare_toplevel_type(BarrierSet) \
duke@0 1437 declare_type(ModRefBarrierSet, BarrierSet) \
duke@0 1438 declare_type(CardTableModRefBS, ModRefBarrierSet) \
ysr@342 1439 declare_type(CardTableModRefBSForCTRS, CardTableModRefBS) \
duke@0 1440 declare_toplevel_type(GenRemSet) \
duke@0 1441 declare_type(CardTableRS, GenRemSet) \
duke@0 1442 declare_toplevel_type(BlockOffsetSharedArray) \
duke@0 1443 declare_toplevel_type(BlockOffsetTable) \
duke@0 1444 declare_type(BlockOffsetArray, BlockOffsetTable) \
duke@0 1445 declare_type(BlockOffsetArrayContigSpace, BlockOffsetArray) \
duke@0 1446 declare_type(BlockOffsetArrayNonContigSpace, BlockOffsetArray) \
duke@0 1447 \
duke@0 1448 /* Miscellaneous other GC types */ \
duke@0 1449 \
duke@0 1450 declare_toplevel_type(ageTable) \
duke@0 1451 declare_toplevel_type(Generation::StatRecord) \
duke@0 1452 declare_toplevel_type(GenerationSpec) \
duke@0 1453 declare_toplevel_type(HeapWord) \
duke@0 1454 declare_toplevel_type(MemRegion) \
duke@0 1455 declare_toplevel_type(ThreadLocalAllocBuffer) \
duke@0 1456 declare_toplevel_type(VirtualSpace) \
duke@0 1457 declare_toplevel_type(WaterMark) \
duke@0 1458 \
duke@0 1459 /* Pointers to Garbage Collection types */ \
duke@0 1460 \
duke@0 1461 declare_toplevel_type(BarrierSet*) \
duke@0 1462 declare_toplevel_type(BlockOffsetSharedArray*) \
duke@0 1463 declare_toplevel_type(GenRemSet*) \
duke@0 1464 declare_toplevel_type(CardTableRS*) \
ysr@342 1465 declare_toplevel_type(CardTableModRefBS*) \
ysr@342 1466 declare_toplevel_type(CardTableModRefBS**) \
ysr@342 1467 declare_toplevel_type(CardTableModRefBSForCTRS*) \
ysr@342 1468 declare_toplevel_type(CardTableModRefBSForCTRS**) \
duke@0 1469 declare_toplevel_type(CollectedHeap*) \
duke@0 1470 declare_toplevel_type(ContiguousSpace*) \
duke@0 1471 declare_toplevel_type(DefNewGeneration*) \
duke@0 1472 declare_toplevel_type(EdenSpace*) \
duke@0 1473 declare_toplevel_type(GenCollectedHeap*) \
duke@0 1474 declare_toplevel_type(Generation*) \
duke@0 1475 declare_toplevel_type(GenerationSpec**) \
duke@0 1476 declare_toplevel_type(HeapWord*) \
duke@0 1477 declare_toplevel_type(MemRegion*) \
duke@0 1478 declare_toplevel_type(OffsetTableContigSpace*) \
duke@0 1479 declare_toplevel_type(OneContigSpaceCardGeneration*) \
duke@0 1480 declare_toplevel_type(Space*) \
duke@0 1481 declare_toplevel_type(ThreadLocalAllocBuffer*) \
duke@0 1482 \
duke@0 1483 /************************/ \
duke@0 1484 /* PerfMemory - jvmstat */ \
duke@0 1485 /************************/ \
duke@0 1486 \
duke@0 1487 declare_toplevel_type(PerfDataPrologue) \
duke@0 1488 declare_toplevel_type(PerfDataPrologue*) \
duke@0 1489 declare_toplevel_type(PerfDataEntry) \
duke@0 1490 declare_toplevel_type(PerfMemory) \
duke@0 1491 \
duke@0 1492 /*********************************/ \
duke@0 1493 /* SymbolTable, SystemDictionary */ \
duke@0 1494 /*********************************/ \
duke@0 1495 \
zgu@3505 1496 declare_toplevel_type(BasicHashtable<mtInternal>) \
zgu@3505 1497 declare_type(IntptrHashtable, BasicHashtable<mtInternal>) \
zgu@3505 1498 declare_type(SymbolTable, SymbolHashtable) \
zgu@3505 1499 declare_type(StringTable, StringHashtable) \
coleenp@3656 1500 declare_type(LoaderConstraintTable, KlassHashtable) \
coleenp@3656 1501 declare_type(KlassTwoOopHashtable, KlassHashtable) \
coleenp@3656 1502 declare_type(Dictionary, KlassTwoOopHashtable) \
zgu@3505 1503 declare_type(PlaceholderTable, SymbolTwoOopHashtable) \
zgu@3505 1504 declare_toplevel_type(BasicHashtableEntry<mtInternal>) \
zgu@3505 1505 declare_type(IntptrHashtableEntry, BasicHashtableEntry<mtInternal>) \
coleenp@3656 1506 declare_type(DictionaryEntry, KlassHashtableEntry) \
zgu@3505 1507 declare_type(PlaceholderEntry, SymbolHashtableEntry) \
coleenp@3656 1508 declare_type(LoaderConstraintEntry, KlassHashtableEntry) \
zgu@3505 1509 declare_toplevel_type(HashtableBucket<mtInternal>) \
duke@0 1510 declare_toplevel_type(SystemDictionary) \
never@2733 1511 declare_toplevel_type(vmSymbols) \
duke@0 1512 declare_toplevel_type(ProtectionDomainEntry) \
duke@0 1513 \
never@2713 1514 declare_toplevel_type(GenericGrowableArray) \
never@2713 1515 declare_toplevel_type(GrowableArray<int>) \
never@2713 1516 declare_toplevel_type(Arena) \
never@2713 1517 declare_type(ResourceArea, Arena) \
never@2713 1518 declare_toplevel_type(Chunk) \
never@2713 1519 \
duke@0 1520 /***********************************************************/ \
duke@0 1521 /* Thread hierarchy (needed for run-time type information) */ \
duke@0 1522 /***********************************************************/ \
duke@0 1523 \
duke@0 1524 declare_toplevel_type(Threads) \
duke@0 1525 declare_toplevel_type(ThreadShadow) \
duke@0 1526 declare_type(Thread, ThreadShadow) \
duke@0 1527 declare_type(NamedThread, Thread) \
duke@0 1528 declare_type(WatcherThread, Thread) \
duke@0 1529 declare_type(JavaThread, Thread) \
duke@0 1530 declare_type(JvmtiAgentThread, JavaThread) \
kamg@2083 1531 declare_type(ServiceThread, JavaThread) \
never@2713 1532 declare_type(CompilerThread, JavaThread) \
duke@0 1533 declare_toplevel_type(OSThread) \
duke@0 1534 declare_toplevel_type(JavaFrameAnchor) \
duke@0 1535 \
duke@0 1536 /***************/ \
duke@0 1537 /* Interpreter */ \
duke@0 1538 /***************/ \
duke@0 1539 \
duke@0 1540 declare_toplevel_type(AbstractInterpreter) \
duke@0 1541 \
duke@0 1542 /*********/ \
duke@0 1543 /* Stubs */ \
duke@0 1544 /*********/ \
duke@0 1545 \
duke@0 1546 declare_toplevel_type(StubQueue) \
duke@0 1547 declare_toplevel_type(StubRoutines) \
duke@0 1548 declare_toplevel_type(Stub) \
duke@0 1549 declare_type(InterpreterCodelet, Stub) \
duke@0 1550 \
duke@0 1551 /*************/ \
duke@0 1552 /* JavaCalls */ \
duke@0 1553 /*************/ \
duke@0 1554 \
duke@0 1555 declare_toplevel_type(JavaCallWrapper) \
duke@0 1556 \
duke@0 1557 /*************/ \
duke@0 1558 /* CodeCache */ \
duke@0 1559 /*************/ \
duke@0 1560 \
duke@0 1561 declare_toplevel_type(CodeCache) \
duke@0 1562 \
duke@0 1563 /************/ \
duke@0 1564 /* CodeHeap */ \
duke@0 1565 /************/ \
duke@0 1566 \
duke@0 1567 declare_toplevel_type(CodeHeap) \
duke@0 1568 declare_toplevel_type(CodeHeap*) \
duke@0 1569 declare_toplevel_type(HeapBlock) \
duke@0 1570 declare_toplevel_type(HeapBlock::Header) \
duke@0 1571 declare_type(FreeBlock, HeapBlock) \
duke@0 1572 \
duke@0 1573 /*************************************************************/ \
duke@0 1574 /* CodeBlob hierarchy (needed for run-time type information) */ \
duke@0 1575 /*************************************************************/ \
duke@0 1576 \
never@2683 1577 declare_toplevel_type(SharedRuntime) \
never@2683 1578 \
duke@0 1579 declare_toplevel_type(CodeBlob) \
never@2683 1580 declare_type(BufferBlob, CodeBlob) \
never@2683 1581 declare_type(AdapterBlob, BufferBlob) \
never@2683 1582 declare_type(MethodHandlesAdapterBlob, BufferBlob) \
never@2683 1583 declare_type(nmethod, CodeBlob) \
never@2683 1584 declare_type(RuntimeStub, CodeBlob) \
never@2683 1585 declare_type(SingletonBlob, CodeBlob) \
never@2683 1586 declare_type(SafepointBlob, SingletonBlob) \
never@2683 1587 declare_type(DeoptimizationBlob, SingletonBlob) \
never@2683 1588 declare_c2_type(ExceptionBlob, SingletonBlob) \
never@2683 1589 declare_c2_type(UncommonTrapBlob, CodeBlob) \
duke@0 1590 \
duke@0 1591 /***************************************/ \
duke@0 1592 /* PcDesc and other compiled code info */ \
duke@0 1593 /***************************************/ \
duke@0 1594 \
duke@0 1595 declare_toplevel_type(PcDesc) \
never@2713 1596 declare_toplevel_type(ExceptionCache) \
never@2713 1597 declare_toplevel_type(PcDescCache) \
never@2713 1598 declare_toplevel_type(Dependencies) \
never@2713 1599 declare_toplevel_type(CompileTask) \
never@2713 1600 declare_toplevel_type(Deoptimization) \
duke@0 1601 \
duke@0 1602 /************************/ \
duke@0 1603 /* OopMap and OopMapSet */ \
duke@0 1604 /************************/ \
duke@0 1605 \
duke@0 1606 declare_toplevel_type(OopMap) \
duke@0 1607 declare_toplevel_type(OopMapSet) \
duke@0 1608 \
duke@0 1609 /********************/ \
duke@0 1610 /* CompressedStream */ \
duke@0 1611 /********************/ \
duke@0 1612 \
duke@0 1613 declare_toplevel_type(CompressedStream) \
duke@0 1614 \
duke@0 1615 /**************/ \
duke@0 1616 /* VMRegImpl */ \
duke@0 1617 /**************/ \
duke@0 1618 \
duke@0 1619 declare_toplevel_type(VMRegImpl) \
duke@0 1620 \
duke@0 1621 /*********************************/ \
duke@0 1622 /* JNIHandles and JNIHandleBlock */ \
duke@0 1623 /*********************************/ \
duke@0 1624 \
duke@0 1625 declare_toplevel_type(JNIHandles) \
duke@0 1626 declare_toplevel_type(JNIHandleBlock) \
never@2713 1627 declare_toplevel_type(jobject) \
duke@0 1628 \
duke@0 1629 /**********************/ \
duke@0 1630 /* Runtime1 (C1 only) */ \
duke@0 1631 /**********************/ \
duke@0 1632 \
duke@0 1633 declare_c1_toplevel_type(Runtime1) \
duke@0 1634 \
duke@0 1635 /************/ \
duke@0 1636 /* Monitors */ \
duke@0 1637 /************/ \
duke@0 1638 \
duke@0 1639 declare_toplevel_type(ObjectMonitor) \
duke@0 1640 declare_toplevel_type(ObjectSynchronizer) \
duke@0 1641 declare_toplevel_type(BasicLock) \
duke@0 1642 declare_toplevel_type(BasicObjectLock) \
duke@0 1643 \
duke@0 1644 /*********************/ \
duke@0 1645 /* Matcher (C2 only) */ \
duke@0 1646 /*********************/ \
duke@0 1647 \
duke@0 1648 declare_c2_toplevel_type(Matcher) \
never@2713 1649 declare_c2_toplevel_type(Compile) \
never@2713 1650 declare_c2_toplevel_type(InlineTree) \
never@2713 1651 declare_c2_toplevel_type(OptoRegPair) \
never@2713 1652 declare_c2_toplevel_type(JVMState) \
never@2713 1653 declare_c2_toplevel_type(Phase) \
never@2713 1654 declare_c2_type(PhaseCFG, Phase) \
never@2713 1655 declare_c2_type(PhaseRegAlloc, Phase) \
never@2713 1656 declare_c2_type(PhaseChaitin, PhaseRegAlloc) \
never@2713 1657 declare_c2_toplevel_type(CFGElement) \
never@2713 1658 declare_c2_type(Block, CFGElement) \
never@2713 1659 declare_c2_toplevel_type(Block_Array) \
never@2713 1660 declare_c2_type(Block_List, Block_Array) \
never@2713 1661 declare_c2_toplevel_type(Node_Array) \
never@2713 1662 declare_c2_type(Node_List, Node_Array) \
never@2713 1663 declare_c2_type(Unique_Node_List, Node_List) \
never@2713 1664 declare_c2_toplevel_type(Node) \
never@2713 1665 declare_c2_type(AddNode, Node) \
never@2713 1666 declare_c2_type(AddINode, AddNode) \
never@2713 1667 declare_c2_type(AddLNode, AddNode) \
never@2713 1668 declare_c2_type(AddFNode, AddNode) \
never@2713 1669 declare_c2_type(AddDNode, AddNode) \
never@2713 1670 declare_c2_type(AddPNode, Node) \
never@2713 1671 declare_c2_type(OrINode, AddNode) \
never@2713 1672 declare_c2_type(OrLNode, AddNode) \
never@2713 1673 declare_c2_type(XorINode, AddNode) \
never@2713 1674 declare_c2_type(XorLNode, AddNode) \
never@2713 1675 declare_c2_type(MaxNode, AddNode) \
never@2713 1676 declare_c2_type(MaxINode, MaxNode) \
never@2713 1677 declare_c2_type(MinINode, MaxNode) \
never@2713 1678 declare_c2_type(StartNode, MultiNode) \
never@2713 1679 declare_c2_type(StartOSRNode, StartNode) \
never@2713 1680 declare_c2_type(ParmNode, ProjNode) \
never@2713 1681 declare_c2_type(ReturnNode, Node) \
never@2713 1682 declare_c2_type(RethrowNode, Node) \
never@2713 1683 declare_c2_type(TailCallNode, ReturnNode) \
never@2713 1684 declare_c2_type(TailJumpNode, ReturnNode) \
never@2713 1685 declare_c2_type(SafePointNode, MultiNode) \
never@2713 1686 declare_c2_type(CallNode, SafePointNode) \
never@2713 1687 declare_c2_type(CallJavaNode, CallNode) \
never@2713 1688 declare_c2_type(CallStaticJavaNode, CallJavaNode) \
never@2713 1689 declare_c2_type(CallDynamicJavaNode, CallJavaNode) \
never@2713 1690 declare_c2_type(CallRuntimeNode, CallNode) \
never@2713 1691 declare_c2_type(CallLeafNode, CallRuntimeNode) \
never@2713 1692 declare_c2_type(CallLeafNoFPNode, CallLeafNode) \
never@2713 1693 declare_c2_type(AllocateNode, CallNode) \
never@2713 1694 declare_c2_type(AllocateArrayNode, AllocateNode) \
never@2713 1695 declare_c2_type(LockNode, AbstractLockNode) \
never@2713 1696 declare_c2_type(UnlockNode, AbstractLockNode) \
never@2713 1697 declare_c2_type(FastLockNode, CmpNode) \
never@2713 1698 declare_c2_type(FastUnlockNode, CmpNode) \
never@2713 1699 declare_c2_type(RegionNode, Node) \
never@2713 1700 declare_c2_type(JProjNode, ProjNode) \
never@2713 1701 declare_c2_type(PhiNode, TypeNode) \
never@2713 1702 declare_c2_type(GotoNode, Node) \
never@2713 1703 declare_c2_type(CProjNode, ProjNode) \
never@2713 1704 declare_c2_type(MultiBranchNode, MultiNode) \
never@2713 1705 declare_c2_type(IfNode, MultiBranchNode) \
never@2713 1706 declare_c2_type(IfTrueNode, CProjNode) \
never@2713 1707 declare_c2_type(IfFalseNode, CProjNode) \
never@2713 1708 declare_c2_type(PCTableNode, MultiBranchNode) \
never@2713 1709 declare_c2_type(JumpNode, PCTableNode) \
never@2713 1710 declare_c2_type(JumpProjNode, JProjNode) \
never@2713 1711 declare_c2_type(CatchNode, PCTableNode) \
never@2713 1712 declare_c2_type(CatchProjNode, CProjNode) \
never@2713 1713 declare_c2_type(CreateExNode, TypeNode) \
never@2713 1714 declare_c2_type(ClearArrayNode, Node) \
never@2713 1715 declare_c2_type(NeverBranchNode, MultiBranchNode) \
never@2713 1716 declare_c2_type(ConNode, TypeNode) \
never@2713 1717 declare_c2_type(ConINode, ConNode) \
never@2713 1718 declare_c2_type(ConPNode, ConNode) \
never@2713 1719 declare_c2_type(ConNNode, ConNode) \
never@2713 1720 declare_c2_type(ConLNode, ConNode) \
never@2713 1721 declare_c2_type(ConFNode, ConNode) \
never@2713 1722 declare_c2_type(ConDNode, ConNode) \
never@2713 1723 declare_c2_type(BinaryNode, Node) \
never@2713 1724 declare_c2_type(CMoveNode, TypeNode) \
never@2713 1725 declare_c2_type(CMoveDNode, CMoveNode) \
never@2713 1726 declare_c2_type(CMoveFNode, CMoveNode) \
never@2713 1727 declare_c2_type(CMoveINode, CMoveNode) \
never@2713 1728 declare_c2_type(CMoveLNode, CMoveNode) \
never@2713 1729 declare_c2_type(CMovePNode, CMoveNode) \
never@2713 1730 declare_c2_type(CMoveNNode, CMoveNode) \
never@2713 1731 declare_c2_type(EncodePNode, TypeNode) \
never@2713 1732 declare_c2_type(DecodeNNode, TypeNode) \
roland@3790 1733 declare_c2_type(EncodePKlassNode, TypeNode) \
roland@3790 1734 declare_c2_type(DecodeNKlassNode, TypeNode) \
never@2713 1735 declare_c2_type(ConstraintCastNode, TypeNode) \
never@2713 1736 declare_c2_type(CastIINode, ConstraintCastNode) \
never@2713 1737 declare_c2_type(CastPPNode, ConstraintCastNode) \
never@2713 1738 declare_c2_type(CheckCastPPNode, TypeNode) \
never@2713 1739 declare_c2_type(Conv2BNode, Node) \
never@2713 1740 declare_c2_type(ConvD2FNode, Node) \
never@2713 1741 declare_c2_type(ConvD2INode, Node) \
never@2713 1742 declare_c2_type(ConvD2LNode, Node) \
never@2713 1743 declare_c2_type(ConvF2DNode, Node) \
never@2713 1744 declare_c2_type(ConvF2INode, Node) \
never@2713 1745 declare_c2_type(ConvF2LNode, Node) \
never@2713 1746 declare_c2_type(ConvI2DNode, Node) \
never@2713 1747 declare_c2_type(ConvI2FNode, Node) \
never@2713 1748 declare_c2_type(ConvI2LNode, TypeNode) \
never@2713 1749 declare_c2_type(ConvL2DNode, Node) \
never@2713 1750 declare_c2_type(ConvL2FNode, Node) \
never@2713 1751 declare_c2_type(ConvL2INode, Node) \
never@2713 1752 declare_c2_type(CastX2PNode, Node) \
never@2713 1753 declare_c2_type(CastP2XNode, Node) \
never@2713 1754 declare_c2_type(MemBarNode, MultiNode) \
never@2713 1755 declare_c2_type(MemBarAcquireNode, MemBarNode) \
never@2713 1756 declare_c2_type(MemBarReleaseNode, MemBarNode) \
never@2713 1757 declare_c2_type(MemBarVolatileNode, MemBarNode) \
never@2713 1758 declare_c2_type(MemBarCPUOrderNode, MemBarNode) \
never@2713 1759 declare_c2_type(InitializeNode, MemBarNode) \
never@2713 1760 declare_c2_type(ThreadLocalNode, Node) \
never@2713 1761 declare_c2_type(Opaque1Node, Node) \
never@2713 1762 declare_c2_type(Opaque2Node, Node) \
never@2713 1763 declare_c2_type(PartialSubtypeCheckNode, Node) \
never@2713 1764 declare_c2_type(MoveI2FNode, Node) \
never@2713 1765 declare_c2_type(MoveL2DNode, Node) \
never@2713 1766 declare_c2_type(MoveF2INode, Node) \
never@2713 1767 declare_c2_type(MoveD2LNode, Node) \
never@2713 1768 declare_c2_type(DivINode, Node) \
never@2713 1769 declare_c2_type(DivLNode, Node) \
never@2713 1770 declare_c2_type(DivFNode, Node) \
never@2713 1771 declare_c2_type(DivDNode, Node) \
never@2713 1772 declare_c2_type(ModINode, Node) \
never@2713 1773 declare_c2_type(ModLNode, Node) \
never@2713 1774 declare_c2_type(ModFNode, Node) \
never@2713 1775 declare_c2_type(ModDNode, Node) \
never@2713 1776 declare_c2_type(DivModNode, MultiNode) \
never@2713 1777 declare_c2_type(DivModINode, DivModNode) \
never@2713 1778 declare_c2_type(DivModLNode, DivModNode) \
never@2713 1779 declare_c2_type(BoxLockNode, Node) \
never@2713 1780 declare_c2_type(LoopNode, RegionNode) \
never@2713 1781 declare_c2_type(CountedLoopNode, LoopNode) \
never@2713 1782 declare_c2_type(CountedLoopEndNode, IfNode) \
never@2713 1783 declare_c2_type(MachNode, Node) \
never@2713 1784 declare_c2_type(MachIdealNode, MachNode) \
never@2713 1785 declare_c2_type(MachTypeNode, MachNode) \
never@2713 1786 declare_c2_type(MachBreakpointNode, MachIdealNode) \
never@2713 1787 declare_c2_type(MachUEPNode, MachIdealNode) \
never@2713 1788 declare_c2_type(MachPrologNode, MachIdealNode) \
never@2713 1789 declare_c2_type(MachEpilogNode, MachIdealNode) \
never@2713 1790 declare_c2_type(MachNopNode, MachIdealNode) \
never@2713 1791 declare_c2_type(MachSpillCopyNode, MachIdealNode) \
never@2713 1792 declare_c2_type(MachNullCheckNode, MachIdealNode) \
never@2713 1793 declare_c2_type(MachProjNode, ProjNode) \
never@2713 1794 declare_c2_type(MachIfNode, MachNode) \
never@2713 1795 declare_c2_type(MachFastLockNode, MachNode) \
never@2713 1796 declare_c2_type(MachReturnNode, MachNode) \
never@2713 1797 declare_c2_type(MachSafePointNode, MachReturnNode) \
never@2713 1798 declare_c2_type(MachCallNode, MachSafePointNode) \
never@2713 1799 declare_c2_type(MachCallJavaNode, MachCallNode) \
never@2713 1800 declare_c2_type(MachCallStaticJavaNode, MachCallJavaNode) \
never@2713 1801 declare_c2_type(MachCallDynamicJavaNode, MachCallJavaNode) \
never@2713 1802 declare_c2_type(MachCallRuntimeNode, MachCallNode) \
never@2713 1803 declare_c2_type(MachHaltNode, MachReturnNode) \
never@2713 1804 declare_c2_type(MachTempNode, MachNode) \
never@2713 1805 declare_c2_type(MemNode, Node) \
never@2713 1806 declare_c2_type(MergeMemNode, Node) \
never@2713 1807 declare_c2_type(LoadNode, MemNode) \
never@2713 1808 declare_c2_type(LoadBNode, LoadNode) \
never@2713 1809 declare_c2_type(LoadUSNode, LoadNode) \
never@2713 1810 declare_c2_type(LoadINode, LoadNode) \
never@2713 1811 declare_c2_type(LoadRangeNode, LoadINode) \
never@2713 1812 declare_c2_type(LoadLNode, LoadNode) \
never@2713 1813 declare_c2_type(LoadL_unalignedNode, LoadLNode) \
never@2713 1814 declare_c2_type(LoadFNode, LoadNode) \
never@2713 1815 declare_c2_type(LoadDNode, LoadNode) \
never@2713 1816 declare_c2_type(LoadD_unalignedNode, LoadDNode) \
never@2713 1817 declare_c2_type(LoadPNode, LoadNode) \
never@2713 1818 declare_c2_type(LoadNNode, LoadNode) \
never@2713 1819 declare_c2_type(LoadKlassNode, LoadPNode) \
never@2713 1820 declare_c2_type(LoadNKlassNode, LoadNNode) \
never@2713 1821 declare_c2_type(LoadSNode, LoadNode) \
never@2713 1822 declare_c2_type(StoreNode, MemNode) \
never@2713 1823 declare_c2_type(StoreBNode, StoreNode) \
never@2713 1824 declare_c2_type(StoreCNode, StoreNode) \
never@2713 1825 declare_c2_type(StoreINode, StoreNode) \
never@2713 1826 declare_c2_type(StoreLNode, StoreNode) \
never@2713 1827 declare_c2_type(StoreFNode, StoreNode) \
never@2713 1828 declare_c2_type(StoreDNode, StoreNode) \
never@2713 1829 declare_c2_type(StorePNode, StoreNode) \
never@2713 1830 declare_c2_type(StoreNNode, StoreNode) \
roland@3790 1831 declare_c2_type(StoreNKlassNode, StoreNode) \
never@2713 1832 declare_c2_type(StoreCMNode, StoreNode) \
never@2713 1833 declare_c2_type(LoadPLockedNode, LoadPNode) \
never@2713 1834 declare_c2_type(SCMemProjNode, ProjNode) \
never@2713 1835 declare_c2_type(LoadStoreNode, Node) \
never@2713 1836 declare_c2_type(StorePConditionalNode, LoadStoreNode) \
never@2713 1837 declare_c2_type(StoreLConditionalNode, LoadStoreNode) \
never@2713 1838 declare_c2_type(CompareAndSwapLNode, LoadStoreNode) \
never@2713 1839 declare_c2_type(CompareAndSwapINode, LoadStoreNode) \
never@2713 1840 declare_c2_type(CompareAndSwapPNode, LoadStoreNode) \
never@2713 1841 declare_c2_type(CompareAndSwapNNode, LoadStoreNode) \
never@2713 1842 declare_c2_type(PrefetchReadNode, Node) \
never@2713 1843 declare_c2_type(PrefetchWriteNode, Node) \
never@2713 1844 declare_c2_type(MulNode, Node) \
never@2713 1845 declare_c2_type(MulINode, MulNode) \
never@2713 1846 declare_c2_type(MulLNode, MulNode) \
never@2713 1847 declare_c2_type(MulFNode, MulNode) \
never@2713 1848 declare_c2_type(MulDNode, MulNode) \
never@2713 1849 declare_c2_type(MulHiLNode, Node) \
never@2713 1850 declare_c2_type(AndINode, MulINode) \
never@2713 1851 declare_c2_type(AndLNode, MulLNode) \
never@2713 1852 declare_c2_type(LShiftINode, Node) \
never@2713 1853 declare_c2_type(LShiftLNode, Node) \
never@2713 1854 declare_c2_type(RShiftINode, Node) \
never@2713 1855 declare_c2_type(RShiftLNode, Node) \
never@2713 1856 declare_c2_type(URShiftINode, Node) \
never@2713 1857 declare_c2_type(URShiftLNode, Node) \
never@2713 1858 declare_c2_type(MultiNode, Node) \
never@2713 1859 declare_c2_type(ProjNode, Node) \
never@2713 1860 declare_c2_type(TypeNode, Node) \
never@2713 1861 declare_c2_type(NodeHash, StackObj) \
never@2713 1862 declare_c2_type(RootNode, LoopNode) \
never@2713 1863 declare_c2_type(HaltNode, Node) \
never@2713 1864 declare_c2_type(SubNode, Node) \
never@2713 1865 declare_c2_type(SubINode, SubNode) \
never@2713 1866 declare_c2_type(SubLNode, SubNode) \
never@2713 1867 declare_c2_type(SubFPNode, SubNode) \
never@2713 1868 declare_c2_type(SubFNode, SubFPNode) \
never@2713 1869 declare_c2_type(SubDNode, SubFPNode) \
never@2713 1870 declare_c2_type(CmpNode, SubNode) \
never@2713 1871 declare_c2_type(CmpINode, CmpNode) \
never@2713 1872 declare_c2_type(CmpUNode, CmpNode) \
never@2713 1873 declare_c2_type(CmpPNode, CmpNode) \
never@2713 1874 declare_c2_type(CmpNNode, CmpNode) \
never@2713 1875 declare_c2_type(CmpLNode, CmpNode) \
never@2713 1876 declare_c2_type(CmpL3Node, CmpLNode) \
never@2713 1877 declare_c2_type(CmpFNode, CmpNode) \
never@2713 1878 declare_c2_type(CmpF3Node, CmpFNode) \
never@2713 1879 declare_c2_type(CmpDNode, CmpNode) \
never@2713 1880 declare_c2_type(CmpD3Node, CmpDNode) \
never@2713 1881 declare_c2_type(BoolNode, Node) \
never@2713 1882 declare_c2_type(AbsNode, Node) \
never@2713 1883 declare_c2_type(AbsINode, AbsNode) \
never@2713 1884 declare_c2_type(AbsFNode, AbsNode) \
never@2713 1885 declare_c2_type(AbsDNode, AbsNode) \
never@2713 1886 declare_c2_type(CmpLTMaskNode, Node) \
never@2713 1887 declare_c2_type(NegNode, Node) \
never@2713 1888 declare_c2_type(NegFNode, NegNode) \
never@2713 1889 declare_c2_type(NegDNode, NegNode) \
never@2713 1890 declare_c2_type(CosDNode, Node) \
never@2713 1891 declare_c2_type(SinDNode, Node) \
never@2713 1892 declare_c2_type(TanDNode, Node) \
never@2713 1893 declare_c2_type(AtanDNode, Node) \
never@2713 1894 declare_c2_type(SqrtDNode, Node) \
never@2713 1895 declare_c2_type(ExpDNode, Node) \
never@2713 1896 declare_c2_type(LogDNode, Node) \
never@2713 1897 declare_c2_type(Log10DNode, Node) \
never@2713 1898 declare_c2_type(PowDNode, Node) \
never@2713 1899 declare_c2_type(ReverseBytesINode, Node) \
never@2713 1900 declare_c2_type(ReverseBytesLNode, Node) \
never@2713 1901 declare_c2_type(VectorNode, Node) \
never@2713 1902 declare_c2_type(AddVBNode, VectorNode) \
never@2713 1903 declare_c2_type(AddVSNode, VectorNode) \
never@2713 1904 declare_c2_type(AddVINode, VectorNode) \
never@2713 1905 declare_c2_type(AddVLNode, VectorNode) \
never@2713 1906 declare_c2_type(AddVFNode, VectorNode) \
never@2713 1907 declare_c2_type(AddVDNode, VectorNode) \
never@2713 1908 declare_c2_type(SubVBNode, VectorNode) \
never@2713 1909 declare_c2_type(SubVSNode, VectorNode) \
never@2713 1910 declare_c2_type(SubVINode, VectorNode) \
never@2713 1911 declare_c2_type(SubVLNode, VectorNode) \
never@2713 1912 declare_c2_type(SubVFNode, VectorNode) \
never@2713 1913 declare_c2_type(SubVDNode, VectorNode) \
kvn@3736 1914 declare_c2_type(MulVSNode, VectorNode) \
kvn@3736 1915 declare_c2_type(MulVINode, VectorNode) \
never@2713 1916 declare_c2_type(MulVFNode, VectorNode) \
never@2713 1917 declare_c2_type(MulVDNode, VectorNode) \
never@2713 1918 declare_c2_type(DivVFNode, VectorNode) \
never@2713 1919 declare_c2_type(DivVDNode, VectorNode) \
never@2713 1920 declare_c2_type(LShiftVBNode, VectorNode) \
never@2713 1921 declare_c2_type(LShiftVSNode, VectorNode) \
never@2713 1922 declare_c2_type(LShiftVINode, VectorNode) \
kvn@3736 1923 declare_c2_type(LShiftVLNode, VectorNode) \
kvn@3465 1924 declare_c2_type(RShiftVBNode, VectorNode) \
kvn@3465 1925 declare_c2_type(RShiftVSNode, VectorNode) \
kvn@3465 1926 declare_c2_type(RShiftVINode, VectorNode) \
kvn@3736 1927 declare_c2_type(RShiftVLNode, VectorNode) \
kvn@3736 1928 declare_c2_type(URShiftVBNode, VectorNode) \
kvn@3736 1929 declare_c2_type(URShiftVSNode, VectorNode) \
kvn@3736 1930 declare_c2_type(URShiftVINode, VectorNode) \
kvn@3736 1931 declare_c2_type(URShiftVLNode, VectorNode) \
never@2713 1932 declare_c2_type(AndVNode, VectorNode) \
never@2713 1933 declare_c2_type(OrVNode, VectorNode) \
never@2713 1934 declare_c2_type(XorVNode, VectorNode) \
kvn@3465 1935 declare_c2_type(LoadVectorNode, LoadNode) \
kvn@3465 1936 declare_c2_type(StoreVectorNode, StoreNode) \
kvn@3465 1937 declare_c2_type(ReplicateBNode, VectorNode) \
kvn@3465 1938 declare_c2_type(ReplicateSNode, VectorNode) \
kvn@3465 1939 declare_c2_type(ReplicateINode, VectorNode) \
kvn@3465 1940 declare_c2_type(ReplicateLNode, VectorNode) \
kvn@3465 1941 declare_c2_type(ReplicateFNode, VectorNode) \
kvn@3465 1942 declare_c2_type(ReplicateDNode, VectorNode) \
never@2713 1943 declare_c2_type(PackNode, VectorNode) \
never@2713 1944 declare_c2_type(PackBNode, PackNode) \
never@2713 1945 declare_c2_type(PackSNode, PackNode) \
never@2713 1946 declare_c2_type(PackINode, PackNode) \
never@2713 1947 declare_c2_type(PackLNode, PackNode) \
never@2713 1948 declare_c2_type(PackFNode, PackNode) \
never@2713 1949 declare_c2_type(PackDNode, PackNode) \
kvn@3465 1950 declare_c2_type(Pack2LNode, PackNode) \
kvn@3465 1951 declare_c2_type(Pack2DNode, PackNode) \
never@2713 1952 declare_c2_type(ExtractNode, Node) \
never@2713 1953 declare_c2_type(ExtractBNode, ExtractNode) \
kvn@3736 1954 declare_c2_type(ExtractUBNode, ExtractNode) \
kvn@3736 1955 declare_c2_type(ExtractCNode, ExtractNode) \
never@2713 1956 declare_c2_type(ExtractSNode, ExtractNode) \
never@2713 1957 declare_c2_type(ExtractINode, ExtractNode) \
never@2713 1958 declare_c2_type(ExtractLNode, ExtractNode) \
never@2713 1959 declare_c2_type(ExtractFNode, ExtractNode) \
never@2713 1960 declare_c2_type(ExtractDNode, ExtractNode) \
duke@0 1961 \
duke@0 1962 /*********************/ \
duke@0 1963 /* Adapter Blob Entries */ \
duke@0 1964 /*********************/ \
duke@0 1965 declare_toplevel_type(AdapterHandlerEntry) \
duke@0 1966 declare_toplevel_type(AdapterHandlerEntry*) \
duke@0 1967 \
never@2713 1968 /*********************/ \
never@2713 1969 /* CI */ \
never@2713 1970 /*********************/ \
never@2713 1971 declare_toplevel_type(ciEnv) \
never@2713 1972 declare_toplevel_type(ciObjectFactory) \
never@2713 1973 declare_toplevel_type(ciConstant) \
never@2713 1974 declare_toplevel_type(ciField) \
coleenp@3656 1975 declare_toplevel_type(ciSymbol) \
coleenp@3656 1976 declare_toplevel_type(ciBaseObject) \
coleenp@3656 1977 declare_type(ciObject, ciBaseObject) \
never@2713 1978 declare_type(ciInstance, ciObject) \
coleenp@3656 1979 declare_type(ciMetadata, ciBaseObject) \
coleenp@3656 1980 declare_type(ciMethod, ciMetadata) \
coleenp@3656 1981 declare_type(ciMethodData, ciMetadata) \
coleenp@3656 1982 declare_type(ciType, ciMetadata) \
never@2713 1983 declare_type(ciKlass, ciType) \
never@2713 1984 declare_type(ciInstanceKlass, ciKlass) \
never@2713 1985 declare_type(ciArrayKlass, ciKlass) \
never@2713 1986 declare_type(ciTypeArrayKlass, ciArrayKlass) \
never@2713 1987 declare_type(ciObjArrayKlass, ciArrayKlass) \
never@2713 1988 \
duke@0 1989 /********************/ \
duke@0 1990 /* -XX flags */ \
duke@0 1991 /********************/ \
duke@0 1992 \
duke@0 1993 declare_toplevel_type(Flag) \
duke@0 1994 declare_toplevel_type(Flag*) \
duke@0 1995 \
duke@0 1996 /********************/ \
never@2713 1997 /* JVMTI */ \
never@2713 1998 /********************/ \
never@2713 1999 \
never@2713 2000 declare_toplevel_type(JvmtiExport) \
never@2713 2001 \
never@2713 2002 /********************/ \
duke@0 2003 /* JDK/VM version */ \
duke@0 2004 /********************/ \
duke@0 2005 \
duke@0 2006 declare_toplevel_type(Abstract_VM_Version) \
duke@0 2007 declare_toplevel_type(JDK_Version) \
duke@0 2008 \
duke@0 2009 /*************/ \
duke@0 2010 /* Arguments */ \
duke@0 2011 /*************/ \
duke@0 2012 \
duke@0 2013 declare_toplevel_type(Arguments) \
duke@0 2014 \
duke@0 2015 /***************/ \
duke@0 2016 /* Other types */ \
duke@0 2017 /***************/ \
duke@0 2018 \
duke@0 2019 /* all enum types */ \
duke@0 2020 \
duke@0 2021 declare_integer_type(Bytecodes::Code) \
duke@0 2022 declare_integer_type(Generation::Name) \
coleenp@3656 2023 declare_integer_type(InstanceKlass::ClassState) \
duke@0 2024 declare_integer_type(JavaThreadState) \
duke@0 2025 declare_integer_type(Location::Type) \
duke@0 2026 declare_integer_type(Location::Where) \
never@2713 2027 declare_integer_type(FlagValueOrigin) \
never@2713 2028 COMPILER2_PRESENT(declare_integer_type(OptoReg::Name)) \
duke@0 2029 \
coleenp@3656 2030 declare_toplevel_type(CHeapObj<mtInternal>) \
coleenp@3656 2031 declare_type(Array<int>, MetaspaceObj) \
coleenp@3656 2032 declare_type(Array<u1>, MetaspaceObj) \
coleenp@3656 2033 declare_type(Array<u2>, MetaspaceObj) \
coleenp@3656 2034 declare_type(Array<Klass*>, MetaspaceObj) \
coleenp@3656 2035 declare_type(Array<Method*>, MetaspaceObj) \
coleenp@3656 2036 \
duke@0 2037 declare_integer_type(AccessFlags) /* FIXME: wrong type (not integer) */\
duke@0 2038 declare_toplevel_type(address) /* FIXME: should this be an integer type? */\
never@2713 2039 declare_integer_type(BasicType) /* FIXME: wrong type (not integer) */\
duke@0 2040 declare_toplevel_type(BreakpointInfo) \
duke@0 2041 declare_toplevel_type(BreakpointInfo*) \
duke@0 2042 declare_toplevel_type(CodeBlob*) \
duke@0 2043 declare_toplevel_type(CompressedWriteStream*) \
duke@0 2044 declare_toplevel_type(ConstantPoolCacheEntry) \
duke@0 2045 declare_toplevel_type(elapsedTimer) \
never@2713 2046 declare_toplevel_type(frame) \
duke@0 2047 declare_toplevel_type(intptr_t*) \
duke@0 2048 declare_unsigned_integer_type(InvocationCounter) /* FIXME: wrong type (not integer) */ \
duke@0 2049 declare_toplevel_type(JavaThread*) \
never@2231 2050 declare_toplevel_type(java_lang_Class) \
never@2713 2051 declare_integer_type(JavaThread::AsyncRequests) \
duke@0 2052 declare_toplevel_type(jbyte*) \
duke@0 2053 declare_toplevel_type(jbyte**) \
duke@0 2054 declare_toplevel_type(jint*) \
duke@0 2055 declare_toplevel_type(jniIdMapBase*) \
duke@0 2056 declare_unsigned_integer_type(juint) \
duke@0 2057 declare_unsigned_integer_type(julong) \
duke@0 2058 declare_toplevel_type(JNIHandleBlock*) \
duke@0 2059 declare_toplevel_type(JNIid) \
duke@0 2060 declare_toplevel_type(JNIid*) \
duke@0 2061 declare_toplevel_type(jmethodID*) \
duke@0 2062 declare_toplevel_type(Mutex*) \
duke@0 2063 declare_toplevel_type(nmethod*) \
never@2713 2064 COMPILER2_PRESENT(declare_unsigned_integer_type(node_idx_t)) \
duke@0 2065 declare_toplevel_type(ObjectMonitor*) \
duke@0 2066 declare_toplevel_type(oop*) \
duke@0 2067 declare_toplevel_type(OopMap**) \
duke@0 2068 declare_toplevel_type(OopMapCache*) \
duke@0 2069 declare_toplevel_type(OopMapSet*) \
duke@0 2070 declare_toplevel_type(VMReg) \
duke@0 2071 declare_toplevel_type(OSThread*) \
duke@0 2072 declare_integer_type(ReferenceType) \
duke@0 2073 declare_toplevel_type(StubQueue*) \
duke@0 2074 declare_toplevel_type(Thread*) \
never@2713 2075 declare_toplevel_type(Universe) \
never@2713 2076 declare_toplevel_type(vframeArray) \
coleenp@3656 2077 declare_toplevel_type(vframeArrayElement) \
jmasa@3825 2078 declare_toplevel_type(Annotations*) \
jmasa@3825 2079 \
jmasa@3825 2080 /***************/ \
jmasa@3825 2081 /* Miscellaneous types */ \
jmasa@3825 2082 /***************/ \
jmasa@3825 2083 \
jmasa@3825 2084 /* freelist */ \
jmasa@3825 2085 declare_toplevel_type(FreeChunk*) \
jmasa@3825 2086 declare_toplevel_type(Metablock*) \
jmasa@3825 2087 declare_toplevel_type(FreeBlockDictionary<FreeChunk>*) \
jmasa@3825 2088 declare_toplevel_type(FreeList<FreeChunk>*) \
jmasa@3825 2089 declare_toplevel_type(FreeList<FreeChunk>) \
jmasa@3825 2090 declare_toplevel_type(FreeBlockDictionary<Metablock>*) \
jmasa@3825 2091 declare_toplevel_type(FreeList<Metablock>*) \
jmasa@3825 2092 declare_toplevel_type(FreeList<Metablock>) \
jmasa@4130 2093 declare_type(MetablockTreeDictionary, FreeBlockDictionary<Metablock>)
never@2713 2094
duke@0 2095
duke@0 2096 //--------------------------------------------------------------------------------
duke@0 2097 // VM_INT_CONSTANTS
duke@0 2098 //
duke@0 2099 // This table contains integer constants required over in the
duke@0 2100 // serviceability agent. The "declare_constant" macro is used for all
duke@0 2101 // enums, etc., while "declare_preprocessor_constant" must be used for
duke@0 2102 // all #defined constants.
duke@0 2103
duke@0 2104 #define VM_INT_CONSTANTS(declare_constant, \
duke@0 2105 declare_preprocessor_constant, \
duke@0 2106 declare_c1_constant, \
duke@0 2107 declare_c2_constant, \
mikael@4068 2108 declare_c2_preprocessor_constant) \
duke@0 2109 \
duke@0 2110 /******************/ \
duke@0 2111 /* Useful globals */ \
duke@0 2112 /******************/ \
duke@0 2113 \
duke@0 2114 \
duke@0 2115 /**************/ \
duke@0 2116 /* Stack bias */ \
duke@0 2117 /**************/ \
duke@0 2118 \
duke@0 2119 declare_preprocessor_constant("STACK_BIAS", STACK_BIAS) \
duke@0 2120 \
duke@0 2121 /****************/ \
duke@0 2122 /* Object sizes */ \
duke@0 2123 /****************/ \
duke@0 2124 \
coleenp@113 2125 declare_constant(oopSize) \
duke@0 2126 declare_constant(LogBytesPerWord) \
coleenp@3656 2127 declare_constant(BytesPerWord) \
duke@0 2128 declare_constant(BytesPerLong) \
duke@0 2129 \
duke@0 2130 /********************************************/ \
duke@0 2131 /* Generation and Space Hierarchy Constants */ \
duke@0 2132 /********************************************/ \
duke@0 2133 \
duke@0 2134 declare_constant(ageTable::table_size) \
duke@0 2135 \
duke@0 2136 declare_constant(BarrierSet::ModRef) \
duke@0 2137 declare_constant(BarrierSet::CardTableModRef) \
duke@0 2138 declare_constant(BarrierSet::Other) \
duke@0 2139 \
duke@0 2140 declare_constant(BlockOffsetSharedArray::LogN) \
duke@0 2141 declare_constant(BlockOffsetSharedArray::LogN_words) \
duke@0 2142 declare_constant(BlockOffsetSharedArray::N_bytes) \
duke@0 2143 declare_constant(BlockOffsetSharedArray::N_words) \
duke@0 2144 \
duke@0 2145 declare_constant(BlockOffsetArray::N_words) \
duke@0 2146 \
duke@0 2147 declare_constant(CardTableModRefBS::clean_card) \
duke@0 2148 declare_constant(CardTableModRefBS::last_card) \
duke@0 2149 declare_constant(CardTableModRefBS::dirty_card) \
duke@0 2150 declare_constant(CardTableModRefBS::Precise) \
duke@0 2151 declare_constant(CardTableModRefBS::ObjHeadPreciseArray) \
duke@0 2152 declare_constant(CardTableModRefBS::card_shift) \
duke@0 2153 declare_constant(CardTableModRefBS::card_size) \
duke@0 2154 declare_constant(CardTableModRefBS::card_size_in_words) \
duke@0 2155 \
duke@0 2156 declare_constant(CardTableRS::youngergen_card) \
duke@0 2157 \
duke@0 2158 declare_constant(CollectedHeap::Abstract) \
duke@0 2159 declare_constant(CollectedHeap::SharedHeap) \
duke@0 2160 declare_constant(CollectedHeap::GenCollectedHeap) \
duke@0 2161 \
duke@0 2162 declare_constant(GenCollectedHeap::max_gens) \
duke@0 2163 \
duke@0 2164 /* constants from Generation::Name enum */ \
duke@0 2165 \
duke@0 2166 declare_constant(Generation::DefNew) \
duke@0 2167 declare_constant(Generation::MarkSweepCompact) \
duke@0 2168 declare_constant(Generation::Other) \
duke@0 2169 \
duke@0 2170 declare_constant(Generation::LogOfGenGrain) \
duke@0 2171 declare_constant(Generation::GenGrain) \
duke@0 2172 \
duke@0 2173 declare_constant(HeapWordSize) \
duke@0 2174 declare_constant(LogHeapWordSize) \
duke@0 2175 \
duke@0 2176 \
duke@0 2177 /************************/ \
duke@0 2178 /* PerfMemory - jvmstat */ \
duke@0 2179 /************************/ \
duke@0 2180 \
duke@0 2181 declare_preprocessor_constant("PERFDATA_MAJOR_VERSION", PERFDATA_MAJOR_VERSION) \
duke@0 2182 declare_preprocessor_constant("PERFDATA_MINOR_VERSION", PERFDATA_MINOR_VERSION) \
duke@0 2183 declare_preprocessor_constant("PERFDATA_BIG_ENDIAN", PERFDATA_BIG_ENDIAN) \
duke@0 2184 declare_preprocessor_constant("PERFDATA_LITTLE_ENDIAN", PERFDATA_LITTLE_ENDIAN) \
duke@0 2185 \
duke@0 2186 /***************/ \
duke@0 2187 /* SymbolTable */ \
duke@0 2188 /***************/ \
duke@0 2189 \
duke@0 2190 declare_constant(SymbolTable::symbol_table_size) \
duke@0 2191 \
duke@0 2192 /***********************************/ \
duke@0 2193 /* LoaderConstraintTable constants */ \
duke@0 2194 /***********************************/ \
duke@0 2195 \
duke@0 2196 declare_constant(LoaderConstraintTable::_loader_constraint_size) \
duke@0 2197 declare_constant(LoaderConstraintTable::_nof_buckets) \
duke@0 2198 \
duke@0 2199 /************************************************************/ \
duke@0 2200 /* HotSpot specific JVM_ACC constants from global anon enum */ \
duke@0 2201 /************************************************************/ \
duke@0 2202 \
duke@0 2203 declare_constant(JVM_ACC_WRITTEN_FLAGS) \
duke@0 2204 declare_constant(JVM_ACC_MONITOR_MATCH) \
duke@0 2205 declare_constant(JVM_ACC_HAS_MONITOR_BYTECODES) \
duke@0 2206 declare_constant(JVM_ACC_HAS_LOOPS) \
duke@0 2207 declare_constant(JVM_ACC_LOOPS_FLAG_INIT) \
duke@0 2208 declare_constant(JVM_ACC_QUEUED) \
twisti@3734 2209 declare_constant(JVM_ACC_NOT_C2_OSR_COMPILABLE) \
duke@0 2210 declare_constant(JVM_ACC_HAS_LINE_NUMBER_TABLE) \
duke@0 2211 declare_constant(JVM_ACC_HAS_CHECKED_EXCEPTIONS) \
duke@0 2212 declare_constant(JVM_ACC_HAS_JSRS) \
duke@0 2213 declare_constant(JVM_ACC_IS_OLD) \
duke@0 2214 declare_constant(JVM_ACC_IS_OBSOLETE) \
duke@0 2215 declare_constant(JVM_ACC_IS_PREFIXED_NATIVE) \
duke@0 2216 declare_constant(JVM_ACC_HAS_MIRANDA_METHODS) \
duke@0 2217 declare_constant(JVM_ACC_HAS_VANILLA_CONSTRUCTOR) \
duke@0 2218 declare_constant(JVM_ACC_HAS_FINALIZER) \
duke@0 2219 declare_constant(JVM_ACC_IS_CLONEABLE) \
duke@0 2220 declare_constant(JVM_ACC_HAS_LOCAL_VARIABLE_TABLE) \
duke@0 2221 declare_constant(JVM_ACC_PROMOTED_FLAGS) \
duke@0 2222 declare_constant(JVM_ACC_FIELD_ACCESS_WATCHED) \
duke@0 2223 declare_constant(JVM_ACC_FIELD_MODIFICATION_WATCHED) \
duke@0 2224 \
duke@0 2225 /*****************************/ \
duke@0 2226 /* Thread::SuspendFlags enum */ \
duke@0 2227 /*****************************/ \
duke@0 2228 \
duke@0 2229 declare_constant(Thread::_external_suspend) \
duke@0 2230 declare_constant(Thread::_ext_suspended) \
duke@0 2231 declare_constant(Thread::_has_async_exception) \
duke@0 2232 \
duke@0 2233 /*******************/ \
duke@0 2234 /* JavaThreadState */ \
duke@0 2235 /*******************/ \
duke@0 2236 \
duke@0 2237 declare_constant(_thread_uninitialized) \
duke@0 2238 declare_constant(_thread_new) \
duke@0 2239 declare_constant(_thread_new_trans) \
duke@0 2240 declare_constant(_thread_in_native) \
duke@0 2241 declare_constant(_thread_in_native_trans) \
duke@0 2242 declare_constant(_thread_in_vm) \
duke@0 2243 declare_constant(_thread_in_vm_trans) \
duke@0 2244 declare_constant(_thread_in_Java) \
duke@0 2245 declare_constant(_thread_in_Java_trans) \
duke@0 2246 declare_constant(_thread_blocked) \
duke@0 2247 declare_constant(_thread_blocked_trans) \
duke@0 2248 \
duke@0 2249 /******************************/ \
duke@0 2250 /* Klass misc. enum constants */ \
duke@0 2251 /******************************/ \
duke@0 2252 \
duke@0 2253 declare_constant(Klass::_primary_super_limit) \
duke@0 2254 declare_constant(Klass::_lh_instance_slow_path_bit) \
duke@0 2255 declare_constant(Klass::_lh_log2_element_size_shift) \
duke@0 2256 declare_constant(Klass::_lh_element_type_shift) \
duke@0 2257 declare_constant(Klass::_lh_header_size_shift) \
duke@0 2258 declare_constant(Klass::_lh_array_tag_shift) \
duke@0 2259 declare_constant(Klass::_lh_array_tag_type_value) \
duke@0 2260 declare_constant(Klass::_lh_array_tag_obj_value) \
duke@0 2261 \
duke@0 2262 /********************************/ \
coleenp@4214 2263 /* ConstMethod anon-enum */ \
duke@0 2264 /********************************/ \
duke@0 2265 \
coleenp@4214 2266 declare_constant(ConstMethod::_has_linenumber_table) \
coleenp@4214 2267 declare_constant(ConstMethod::_has_checked_exceptions) \
coleenp@4214 2268 declare_constant(ConstMethod::_has_localvariable_table) \
coleenp@4214 2269 declare_constant(ConstMethod::_has_exception_table) \
coleenp@4214 2270 declare_constant(ConstMethod::_has_generic_signature) \
coleenp@4214 2271 declare_constant(ConstMethod::_has_method_annotations) \
coleenp@4214 2272 declare_constant(ConstMethod::_has_parameter_annotations) \
coleenp@4214 2273 declare_constant(ConstMethod::_has_default_annotations) \
coleenp@4214 2274 declare_constant(ConstMethod::_has_type_annotations) \
duke@0 2275 \
duke@0 2276 /*************************************/ \
coleenp@3656 2277 /* InstanceKlass enum */ \
duke@0 2278 /*************************************/ \
duke@0 2279 \
duke@0 2280 \
never@2712 2281 /*************************************/ \
never@2712 2282 /* FieldInfo FieldOffset enum */ \
never@2712 2283 /*************************************/ \
never@2712 2284 \
never@2712 2285 declare_constant(FieldInfo::access_flags_offset) \
never@2712 2286 declare_constant(FieldInfo::name_index_offset) \
never@2712 2287 declare_constant(FieldInfo::signature_index_offset) \
never@2712 2288 declare_constant(FieldInfo::initval_index_offset) \
jwilhelm@4072 2289 declare_constant(FieldInfo::low_packed_offset) \
jwilhelm@4072 2290 declare_constant(FieldInfo::high_packed_offset) \
never@2712 2291 declare_constant(FieldInfo::field_slots) \
never@2712 2292 \
jwilhelm@4072 2293 /*************************************/ \
jwilhelm@4072 2294 /* FieldInfo tag constants */ \
jwilhelm@4072 2295 /*************************************/ \
jwilhelm@4072 2296 \
jwilhelm@4072 2297 declare_preprocessor_constant("FIELDINFO_TAG_SIZE", FIELDINFO_TAG_SIZE) \
sla@4104 2298 declare_preprocessor_constant("FIELDINFO_TAG_MASK", FIELDINFO_TAG_MASK) \
jwilhelm@4072 2299 declare_preprocessor_constant("FIELDINFO_TAG_OFFSET", FIELDINFO_TAG_OFFSET) \
jwilhelm@4072 2300 \
duke@0 2301 /************************************************/ \
coleenp@3656 2302 /* InstanceKlass InnerClassAttributeOffset enum */ \
duke@0 2303 /************************************************/ \
duke@0 2304 \
coleenp@3656 2305 declare_constant(InstanceKlass::inner_class_inner_class_info_offset) \
coleenp@3656 2306 declare_constant(InstanceKlass::inner_class_outer_class_info_offset) \
coleenp@3656 2307 declare_constant(InstanceKlass::inner_class_inner_name_offset) \
coleenp@3656 2308 declare_constant(InstanceKlass::inner_class_access_flags_offset) \
coleenp@3656 2309 declare_constant(InstanceKlass::inner_class_next_offset) \
duke@0 2310 \
duke@0 2311 /*********************************/ \
coleenp@3656 2312 /* InstanceKlass ClassState enum */ \
duke@0 2313 /*********************************/ \
duke@0 2314 \
coleenp@3656 2315 declare_constant(InstanceKlass::allocated) \
coleenp@3656 2316 declare_constant(InstanceKlass::loaded) \
coleenp@3656 2317 declare_constant(InstanceKlass::linked) \
coleenp@3656 2318 declare_constant(InstanceKlass::being_initialized) \
coleenp@3656 2319 declare_constant(InstanceKlass::fully_initialized) \
coleenp@3656 2320 declare_constant(InstanceKlass::initialization_error) \
duke@0 2321 \
duke@0 2322 /*********************************/ \
twisti@3582 2323 /* Symbol* - symbol max length */ \
duke@0 2324 /*********************************/ \
duke@0 2325 \
coleenp@2069 2326 declare_constant(Symbol::max_symbol_length) \
duke@0 2327 \
jrose@1838 2328 /*************************************************/ \
coleenp@3656 2329 /* ConstantPool* layout enum for InvokeDynamic */ \
jrose@1838 2330 /*************************************************/ \
jrose@1838 2331 \
coleenp@3656 2332 declare_constant(ConstantPool::_indy_bsm_offset) \
coleenp@3656 2333 declare_constant(ConstantPool::_indy_argc_offset) \
coleenp@3656 2334 declare_constant(ConstantPool::_indy_argv_offset) \
jrose@1838 2335 \
twisti@3582 2336 /********************************/ \
twisti@3582 2337 /* ConstantPoolCacheEntry enums */ \
twisti@3582 2338 /********************************/ \
duke@0 2339 \
twisti@3582 2340 declare_constant(ConstantPoolCacheEntry::is_volatile_shift) \
twisti@3582 2341 declare_constant(ConstantPoolCacheEntry::is_final_shift) \
twisti@3582 2342 declare_constant(ConstantPoolCacheEntry::is_forced_virtual_shift) \
twisti@3582 2343 declare_constant(ConstantPoolCacheEntry::is_vfinal_shift) \
twisti@3582 2344 declare_constant(ConstantPoolCacheEntry::is_field_entry_shift) \
twisti@3582 2345 declare_constant(ConstantPoolCacheEntry::tos_state_shift) \
duke@0 2346 \
duke@0 2347 /***************************************/ \
duke@0 2348 /* java_lang_Thread::ThreadStatus enum */ \
duke@0 2349 /***************************************/ \
duke@0 2350 \
duke@0 2351 declare_constant(java_lang_Thread::NEW) \
duke@0 2352 declare_constant(java_lang_Thread::RUNNABLE) \
duke@0 2353 declare_constant(java_lang_Thread::SLEEPING) \
duke@0 2354 declare_constant(java_lang_Thread::IN_OBJECT_WAIT) \
duke@0 2355 declare_constant(java_lang_Thread::IN_OBJECT_WAIT_TIMED) \
duke@0 2356 declare_constant(java_lang_Thread::PARKED) \
duke@0 2357 declare_constant(java_lang_Thread::PARKED_TIMED) \
duke@0 2358 declare_constant(java_lang_Thread::BLOCKED_ON_MONITOR_ENTER) \
duke@0 2359 declare_constant(java_lang_Thread::TERMINATED) \
duke@0 2360 \
duke@0 2361 /******************************/ \
duke@0 2362 /* Debug info */ \
duke@0 2363 /******************************/ \
duke@0 2364 \
duke@0 2365 declare_constant(Location::OFFSET_MASK) \
duke@0 2366 declare_constant(Location::OFFSET_SHIFT) \
duke@0 2367 declare_constant(Location::TYPE_MASK) \
duke@0 2368 declare_constant(Location::TYPE_SHIFT) \
duke@0 2369 declare_constant(Location::WHERE_MASK) \
duke@0 2370 declare_constant(Location::WHERE_SHIFT) \
duke@0 2371 \
duke@0 2372 /* constants from Location::Type enum */ \
duke@0 2373 \
duke@0 2374 declare_constant(Location::normal) \
duke@0 2375 declare_constant(Location::oop) \
kvn@331 2376 declare_constant(Location::narrowoop) \
duke@0 2377 declare_constant(Location::int_in_long) \
duke@0 2378 declare_constant(Location::lng) \
duke@0 2379 declare_constant(Location::float_in_dbl) \
duke@0 2380 declare_constant(Location::dbl) \
duke@0 2381 declare_constant(Location::addr) \
duke@0 2382 declare_constant(Location::invalid) \
duke@0 2383 \
duke@0 2384 /* constants from Location::Where enum */ \
duke@0 2385 \
duke@0 2386 declare_constant(Location::on_stack) \
duke@0 2387 declare_constant(Location::in_register) \
duke@0 2388 \
never@2713 2389 declare_constant(Deoptimization::Reason_many) \
never@2713 2390 declare_constant(Deoptimization::Reason_none) \
never@2713 2391 declare_constant(Deoptimization::Reason_null_check) \
never@2713 2392 declare_constant(Deoptimization::Reason_null_assert) \
never@2713 2393 declare_constant(Deoptimization::Reason_range_check) \
never@2713 2394 declare_constant(Deoptimization::Reason_class_check) \
never@2713 2395 declare_constant(Deoptimization::Reason_array_check) \
never@2713 2396 declare_constant(Deoptimization::Reason_intrinsic) \
never@2713 2397 declare_constant(Deoptimization::Reason_bimorphic) \
never@2713 2398 declare_constant(Deoptimization::Reason_unloaded) \
never@2713 2399 declare_constant(Deoptimization::Reason_uninitialized) \
never@2713 2400 declare_constant(Deoptimization::Reason_unreached) \
never@2713 2401 declare_constant(Deoptimization::Reason_unhandled) \
never@2713 2402 declare_constant(Deoptimization::Reason_constraint) \
never@2713 2403 declare_constant(Deoptimization::Reason_div0_check) \
never@2713 2404 declare_constant(Deoptimization::Reason_age) \
never@2713 2405 declare_constant(Deoptimization::Reason_predicate) \
never@2713 2406 declare_constant(Deoptimization::Reason_loop_limit_check) \
never@2713 2407 declare_constant(Deoptimization::Reason_LIMIT) \
never@2713 2408 declare_constant(Deoptimization::Reason_RECORDED_LIMIT) \
never@2713 2409 \
duke@0 2410 /*********************/ \
duke@0 2411 /* Matcher (C2 only) */ \
duke@0 2412 /*********************/ \
duke@0 2413 \
duke@0 2414 declare_c2_preprocessor_constant("Matcher::interpreter_frame_pointer_reg", Matcher::interpreter_frame_pointer_reg()) \
duke@0 2415 \
duke@0 2416 /*********************************************/ \
duke@0 2417 /* MethodCompilation (globalDefinitions.hpp) */ \
duke@0 2418 /*********************************************/ \
duke@0 2419 \
duke@0 2420 declare_constant(InvocationEntryBci) \
duke@0 2421 declare_constant(InvalidOSREntryBci) \
duke@0 2422 \
duke@0 2423 /***************/ \
duke@0 2424 /* OopMapValue */ \
duke@0 2425 /***************/ \
duke@0 2426 \
duke@0 2427 declare_constant(OopMapValue::type_bits) \
duke@0 2428 declare_constant(OopMapValue::register_bits) \
duke@0 2429 declare_constant(OopMapValue::type_shift) \
duke@0 2430 declare_constant(OopMapValue::register_shift) \
duke@0 2431 declare_constant(OopMapValue::type_mask) \
duke@0 2432 declare_constant(OopMapValue::type_mask_in_place) \
duke@0 2433 declare_constant(OopMapValue::register_mask) \
duke@0 2434 declare_constant(OopMapValue::register_mask_in_place) \
duke@0 2435 declare_constant(OopMapValue::unused_value) \
duke@0 2436 declare_constant(OopMapValue::oop_value) \
duke@0 2437 declare_constant(OopMapValue::value_value) \
coleenp@113 2438 declare_constant(OopMapValue::narrowoop_value) \
duke@0 2439 declare_constant(OopMapValue::callee_saved_value) \
duke@0 2440 declare_constant(OopMapValue::derived_oop_value) \
duke@0 2441 \
duke@0 2442 /******************/ \
duke@0 2443 /* JNIHandleBlock */ \
duke@0 2444 /******************/ \
duke@0 2445 \
duke@0 2446 declare_constant(JNIHandleBlock::block_size_in_oops) \
duke@0 2447 \
duke@0 2448 /**********************/ \
duke@0 2449 /* ObjectSynchronizer */ \
duke@0 2450 /**********************/ \
duke@0 2451 \
duke@0 2452 declare_constant(ObjectSynchronizer::_BLOCKSIZE) \
duke@0 2453 \
never@2683 2454 /**********************/ \
never@2683 2455 /* PcDesc */ \
never@2683 2456 /**********************/ \
never@2683 2457 \
never@2683 2458 declare_constant(PcDesc::PCDESC_reexecute) \
never@2683 2459 declare_constant(PcDesc::PCDESC_is_method_handle_invoke) \
never@2683 2460 declare_constant(PcDesc::PCDESC_return_oop) \
never@2683 2461 \
never@2683 2462 /**********************/ \
never@2683 2463 /* frame */ \
never@2683 2464 /**********************/ \
never@2683 2465 \
twisti@3866 2466 NOT_ZERO(X86_ONLY(declare_constant(frame::entry_frame_call_wrapper_offset))) \
never@2683 2467 declare_constant(frame::pc_return_offset) \
never@2683 2468 \
never@2733 2469 /*************/ \
never@2733 2470 /* vmSymbols */ \
never@2733 2471 /*************/ \
never@2733 2472 \
never@2733 2473 declare_constant(vmSymbols::FIRST_SID) \
never@2733 2474 declare_constant(vmSymbols::SID_LIMIT) \
never@2733 2475 \
duke@0 2476 /********************************/ \
duke@0 2477 /* Calling convention constants */ \
duke@0 2478 /********************************/ \
duke@0 2479 \
duke@0 2480 declare_constant(RegisterImpl::number_of_registers) \
duke@0 2481 declare_constant(ConcreteRegisterImpl::number_of_registers) \
duke@0 2482 declare_preprocessor_constant("REG_COUNT", REG_COUNT) \
duke@0 2483 declare_c2_preprocessor_constant("SAVED_ON_ENTRY_REG_COUNT", SAVED_ON_ENTRY_REG_COUNT) \
duke@0 2484 declare_c2_preprocessor_constant("C_SAVED_ON_ENTRY_REG_COUNT", C_SAVED_ON_ENTRY_REG_COUNT)
duke@0 2485
duke@0 2486
duke@0 2487 //--------------------------------------------------------------------------------
duke@0 2488 // VM_LONG_CONSTANTS
duke@0 2489 //
duke@0 2490 // This table contains long constants required over in the
duke@0 2491 // serviceability agent. The "declare_constant" macro is used for all
duke@0 2492 // enums, etc., while "declare_preprocessor_constant" must be used for
duke@0 2493 // all #defined constants.
duke@0 2494
mikael@4068 2495 #define VM_LONG_CONSTANTS(declare_constant, declare_preprocessor_constant, declare_c1_constant, declare_c2_constant, declare_c2_preprocessor_constant) \
duke@0 2496 \
duke@0 2497 /*********************/ \
duke@0 2498 /* MarkOop constants */ \
duke@0 2499 /*********************/ \
duke@0 2500 \
duke@0 2501 /* Note: some of these are declared as long constants just for */ \
duke@0 2502 /* consistency. The mask constants are the only ones requiring */ \
duke@0 2503 /* 64 bits (on 64-bit platforms). */ \
duke@0 2504 \
duke@0 2505 declare_constant(markOopDesc::age_bits) \
duke@0 2506 declare_constant(markOopDesc::lock_bits) \
duke@0 2507 declare_constant(markOopDesc::biased_lock_bits) \
duke@0 2508 declare_constant(markOopDesc::max_hash_bits) \
duke@0 2509 declare_constant(markOopDesc::hash_bits) \
duke@0 2510 \
duke@0 2511 declare_constant(markOopDesc::lock_shift) \
duke@0 2512 declare_constant(markOopDesc::biased_lock_shift) \
duke@0 2513 declare_constant(markOopDesc::age_shift) \
duke@0 2514 declare_constant(markOopDesc::hash_shift) \
duke@0 2515 \
duke@0 2516 declare_constant(markOopDesc::lock_mask) \
duke@0 2517 declare_constant(markOopDesc::lock_mask_in_place) \
duke@0 2518 declare_constant(markOopDesc::biased_lock_mask) \
duke@0 2519 declare_constant(markOopDesc::biased_lock_mask_in_place) \
duke@0 2520 declare_constant(markOopDesc::biased_lock_bit_in_place) \
duke@0 2521 declare_constant(markOopDesc::age_mask) \
duke@0 2522 declare_constant(markOopDesc::age_mask_in_place) \
duke@0 2523 declare_constant(markOopDesc::hash_mask) \
duke@0 2524 declare_constant(markOopDesc::hash_mask_in_place) \
duke@0 2525 declare_constant(markOopDesc::biased_lock_alignment) \
duke@0 2526 \
duke@0 2527 declare_constant(markOopDesc::locked_value) \
duke@0 2528 declare_constant(markOopDesc::unlocked_value) \
duke@0 2529 declare_constant(markOopDesc::monitor_value) \
duke@0 2530 declare_constant(markOopDesc::marked_value) \
duke@0 2531 declare_constant(markOopDesc::biased_lock_pattern) \
duke@0 2532 \
duke@0 2533 declare_constant(markOopDesc::no_hash) \
duke@0 2534 declare_constant(markOopDesc::no_hash_in_place) \
duke@0 2535 declare_constant(markOopDesc::no_lock_in_place) \
coleenp@187 2536 declare_constant(markOopDesc::max_age) \
coleenp@187 2537 \
coleenp@187 2538 /* Constants in markOop used by CMS. */ \
coleenp@187 2539 declare_constant(markOopDesc::cms_shift) \
coleenp@187 2540 declare_constant(markOopDesc::cms_mask) \
mikael@4068 2541 declare_constant(markOopDesc::size_shift)
duke@0 2542
duke@0 2543
duke@0 2544 //--------------------------------------------------------------------------------
duke@0 2545 // Macros operating on the above lists
duke@0 2546 //--------------------------------------------------------------------------------
duke@0 2547
duke@0 2548 // This utility macro quotes the passed string
duke@0 2549 #define QUOTE(x) #x
duke@0 2550
duke@0 2551 //--------------------------------------------------------------------------------
duke@0 2552 // VMStructEntry macros
duke@0 2553 //
duke@0 2554
duke@0 2555 // This macro generates a VMStructEntry line for a nonstatic field
duke@0 2556 #define GENERATE_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \
duke@0 2557 { QUOTE(typeName), QUOTE(fieldName), QUOTE(type), 0, cast_uint64_t(offset_of(typeName, fieldName)), NULL },
duke@0 2558
duke@0 2559 // This macro generates a VMStructEntry line for a static field
duke@0 2560 #define GENERATE_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \
duke@0 2561 { QUOTE(typeName), QUOTE(fieldName), QUOTE(type), 1, 0, &typeName::fieldName },
duke@0 2562
duke@0 2563 // This macro generates a VMStructEntry line for an unchecked
duke@0 2564 // nonstatic field, in which the size of the type is also specified.
duke@0 2565 // The type string is given as NULL, indicating an "opaque" type.
duke@0 2566 #define GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, size) \
duke@0 2567 { QUOTE(typeName), QUOTE(fieldName), NULL, 0, cast_uint64_t(offset_of(typeName, fieldName)), NULL },
duke@0 2568
duke@0 2569 // This macro generates a VMStructEntry line for an unchecked
duke@0 2570 // static field, in which the size of the type is also specified.
duke@0 2571 // The type string is given as NULL, indicating an "opaque" type.
duke@0 2572 #define GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, size) \
duke@0 2573 { QUOTE(typeName), QUOTE(fieldName), NULL, 1, 0, (void*) &typeName::fieldName },
duke@0 2574
duke@0 2575 // This macro generates the sentinel value indicating the end of the list
duke@0 2576 #define GENERATE_VM_STRUCT_LAST_ENTRY() \
duke@0 2577 { NULL, NULL, NULL, 0, 0, NULL }
duke@0 2578
duke@0 2579 // This macro checks the type of a VMStructEntry by comparing pointer types
duke@0 2580 #define CHECK_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \
mikael@4075 2581 {typeName *dummyObj = NULL; type* dummy = &dummyObj->fieldName; \
mikael@4075 2582 assert(offset_of(typeName, fieldName) < sizeof(typeName), "Illegal nonstatic struct entry, field offset too large"); }
duke@0 2583
duke@0 2584 // This macro checks the type of a volatile VMStructEntry by comparing pointer types
duke@0 2585 #define CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \
duke@0 2586 {typedef type dummyvtype; typeName *dummyObj = NULL; volatile dummyvtype* dummy = &dummyObj->fieldName; }
duke@0 2587
duke@0 2588 // This macro checks the type of a VMStructEntry by comparing pointer types
duke@0 2589 #define CHECK_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \
duke@0 2590 {type* dummy = &typeName::fieldName; }
duke@0 2591
duke@0 2592 // This macro ensures the type of a field and its containing type are
duke@0 2593 // present in the type table. The assertion string is shorter than
duke@0 2594 // preferable because (incredibly) of a bug in Solstice NFS client
duke@0 2595 // which seems to prevent very long lines from compiling. This assertion
duke@0 2596 // means that an entry in VMStructs::localHotSpotVMStructs[] was not
duke@0 2597 // found in VMStructs::localHotSpotVMTypes[].
duke@0 2598 #define ENSURE_FIELD_TYPE_PRESENT(typeName, fieldName, type) \
duke@0 2599 { assert(findType(QUOTE(typeName)) != 0, "type \"" QUOTE(typeName) "\" not found in type table"); \
duke@0 2600 assert(findType(QUOTE(type)) != 0, "type \"" QUOTE(type) "\" not found in type table"); }
duke@0 2601
duke@0 2602 // This is a no-op macro for unchecked fields
duke@0 2603 #define CHECK_NO_OP(a, b, c)
duke@0 2604
duke@0 2605 //
duke@0 2606 // Build-specific macros:
duke@0 2607 //
duke@0 2608
duke@0 2609 // Generate and check a nonstatic field in non-product builds
duke@0 2610 #ifndef PRODUCT
duke@0 2611 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2612 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2613 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2614 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2615 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2616 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2617 #else
duke@0 2618 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2619 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2620 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2621 # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2622 # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2623 # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2624 #endif /* PRODUCT */
duke@0 2625
duke@0 2626 // Generate and check a nonstatic field in C1 builds
duke@0 2627 #ifdef COMPILER1
duke@0 2628 # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2629 # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2630 # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2631 #else
duke@0 2632 # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2633 # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2634 # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2635 #endif /* COMPILER1 */
duke@0 2636 // Generate and check a nonstatic field in C2 builds
duke@0 2637 #ifdef COMPILER2
duke@0 2638 # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2639 # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2640 # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2641 #else
duke@0 2642 # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2643 # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2644 # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c)
duke@0 2645 #endif /* COMPILER2 */
duke@0 2646
duke@0 2647 // Generate but do not check a static field in C1 builds
duke@0 2648 #ifdef COMPILER1
duke@0 2649 # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2650 #else
duke@0 2651 # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2652 #endif /* COMPILER1 */
duke@0 2653
duke@0 2654 // Generate but do not check a static field in C2 builds
duke@0 2655 #ifdef COMPILER2
duke@0 2656 # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2657 #else
duke@0 2658 # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c)
duke@0 2659 #endif /* COMPILER2 */
duke@0 2660
duke@0 2661 //--------------------------------------------------------------------------------
duke@0 2662 // VMTypeEntry macros
duke@0 2663 //
duke@0 2664
duke@0 2665 #define GENERATE_VM_TYPE_ENTRY(type, superclass) \
duke@0 2666 { QUOTE(type), QUOTE(superclass), 0, 0, 0, sizeof(type) },
duke@0 2667
duke@0 2668 #define GENERATE_TOPLEVEL_VM_TYPE_ENTRY(type) \
duke@0 2669 { QUOTE(type), NULL, 0, 0, 0, sizeof(type) },
duke@0 2670
duke@0 2671 #define GENERATE_OOP_VM_TYPE_ENTRY(type) \
duke@0 2672 { QUOTE(type), NULL, 1, 0, 0, sizeof(type) },
duke@0 2673
duke@0 2674 #define GENERATE_INTEGER_VM_TYPE_ENTRY(type) \
duke@0 2675 { QUOTE(type), NULL, 0, 1, 0, sizeof(type) },
duke@0 2676
duke@0 2677 #define GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY(type) \
duke@0 2678 { QUOTE(type), NULL, 0, 1, 1, sizeof(type) },
duke@0 2679
duke@0 2680 #define GENERATE_VM_TYPE_LAST_ENTRY() \
duke@0 2681 { NULL, NULL, 0, 0, 0, 0 }
duke@0 2682
duke@0 2683 #define CHECK_VM_TYPE_ENTRY(type, superclass) \
duke@0 2684 { type* dummyObj = NULL; superclass* dummySuperObj = dummyObj; }
duke@0 2685
duke@0 2686 #define CHECK_VM_TYPE_NO_OP(a)
duke@0 2687 #define CHECK_SINGLE_ARG_VM_TYPE_NO_OP(a)
duke@0 2688
duke@0 2689 //
duke@0 2690 // Build-specific macros:
duke@0 2691 //
duke@0 2692
duke@0 2693 #ifdef COMPILER1
duke@0 2694 # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2695 # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2696 #else
duke@0 2697 # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2698 # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2699 #endif /* COMPILER1 */
duke@0 2700
duke@0 2701 #ifdef COMPILER2
duke@0 2702 # define GENERATE_C2_VM_TYPE_ENTRY(a, b) GENERATE_VM_TYPE_ENTRY(a, b)
duke@0 2703 # define CHECK_C2_VM_TYPE_ENTRY(a, b) CHECK_VM_TYPE_ENTRY(a, b)
duke@0 2704 # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2705 # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2706 #else
duke@0 2707 # define GENERATE_C2_VM_TYPE_ENTRY(a, b)
duke@0 2708 # define CHECK_C2_VM_TYPE_ENTRY(a, b)
duke@0 2709 # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2710 # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a)
duke@0 2711 #endif /* COMPILER2 */
duke@0 2712
duke@0 2713
duke@0 2714 //--------------------------------------------------------------------------------
duke@0 2715 // VMIntConstantEntry macros
duke@0 2716 //
duke@0 2717
duke@0 2718 #define GENERATE_VM_INT_CONSTANT_ENTRY(name) \
duke@0 2719 { QUOTE(name), (int32_t) name },
duke@0 2720
duke@0 2721 #define GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) \
duke@0 2722 { name, (int32_t) value },
duke@0 2723
duke@0 2724 // This macro generates the sentinel value indicating the end of the list
duke@0 2725 #define GENERATE_VM_INT_CONSTANT_LAST_ENTRY() \
duke@0 2726 { NULL, 0 }
duke@0 2727
duke@0 2728
duke@0 2729 // Generate an int constant for a C1 build
duke@0 2730 #ifdef COMPILER1
duke@0 2731 # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name)
duke@0 2732 #else
duke@0 2733 # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name)
duke@0 2734 #endif /* COMPILER1 */
duke@0 2735
duke@0 2736 // Generate an int constant for a C2 build
duke@0 2737 #ifdef COMPILER2
duke@0 2738 # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name)
duke@0 2739 # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value)
duke@0 2740 #else
duke@0 2741 # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name)
duke@0 2742 # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value)
duke@0 2743 #endif /* COMPILER1 */
duke@0 2744
duke@0 2745 //--------------------------------------------------------------------------------
duke@0 2746 // VMLongConstantEntry macros
duke@0 2747 //
duke@0 2748
duke@0 2749 #define GENERATE_VM_LONG_CONSTANT_ENTRY(name) \
duke@0 2750 { QUOTE(name), cast_uint64_t(name) },
duke@0 2751
duke@0 2752 #define GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) \
duke@0 2753 { name, cast_uint64_t(value) },
duke@0 2754
duke@0 2755 // This macro generates the sentinel value indicating the end of the list
duke@0 2756 #define GENERATE_VM_LONG_CONSTANT_LAST_ENTRY() \
duke@0 2757 { NULL, 0 }
duke@0 2758
duke@0 2759 // Generate a long constant for a C1 build
duke@0 2760 #ifdef COMPILER1
duke@0 2761 # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name)
duke@0 2762 #else
duke@0 2763 # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name)
duke@0 2764 #endif /* COMPILER1 */
duke@0 2765
duke@0 2766 // Generate a long constant for a C2 build
duke@0 2767 #ifdef COMPILER2
duke@0 2768 # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name)
duke@0 2769 # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value)
duke@0 2770 #else
duke@0 2771 # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name)
duke@0 2772 # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value)
duke@0 2773 #endif /* COMPILER1 */
duke@0 2774
duke@0 2775 //
duke@0 2776 // Instantiation of VMStructEntries, VMTypeEntries and VMIntConstantEntries
duke@0 2777 //
duke@0 2778
duke@0 2779 // These initializers are allowed to access private fields in classes
duke@0 2780 // as long as class VMStructs is a friend
duke@0 2781 VMStructEntry VMStructs::localHotSpotVMStructs[] = {
duke@0 2782
mikael@4068 2783 VM_STRUCTS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2784 GENERATE_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2785 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2786 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2787 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2788 GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2789 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2790 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2791 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
duke@0 2792
jprovino@4184 2793 #if INCLUDE_ALL_GCS
mikael@4068 2794 VM_STRUCTS_PARALLELGC(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2795 GENERATE_STATIC_VM_STRUCT_ENTRY)
duke@0 2796
mikael@4068 2797 VM_STRUCTS_CMS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2798 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2799 GENERATE_STATIC_VM_STRUCT_ENTRY)
tonyp@2743 2800
mikael@4068 2801 VM_STRUCTS_G1(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
tonyp@2743 2802 GENERATE_STATIC_VM_STRUCT_ENTRY)
jprovino@4184 2803 #endif // INCLUDE_ALL_GCS
duke@0 2804
mikael@4068 2805 VM_STRUCTS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2806 GENERATE_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2807 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2808 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2809 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2810 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2811 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2812 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
duke@0 2813
mikael@4068 2814 VM_STRUCTS_OS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2815 GENERATE_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2816 GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2817 GENERATE_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2818 GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2819 GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY,
mikael@4068 2820 GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY,
mikael@4068 2821 GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY)
mikael@4068 2822
mikael@4068 2823 GENERATE_VM_STRUCT_LAST_ENTRY()
duke@0 2824 };
duke@0 2825
duke@0 2826 VMTypeEntry VMStructs::localHotSpotVMTypes[] = {
duke@0 2827
duke@0 2828 VM_TYPES(GENERATE_VM_TYPE_ENTRY,
duke@0 2829 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2830 GENERATE_OOP_VM_TYPE_ENTRY,
duke@0 2831 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@0 2832 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@0 2833 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2834 GENERATE_C2_VM_TYPE_ENTRY,
mikael@4068 2835 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
duke@0 2836
jprovino@4184 2837 #if INCLUDE_ALL_GCS
duke@0 2838 VM_TYPES_PARALLELGC(GENERATE_VM_TYPE_ENTRY,
duke@0 2839 GENERATE_TOPLEVEL_VM_TYPE_ENTRY)
duke@0 2840
duke@0 2841 VM_TYPES_CMS(GENERATE_VM_TYPE_ENTRY,
duke@0 2842 GENERATE_TOPLEVEL_VM_TYPE_ENTRY)
duke@0 2843
duke@0 2844 VM_TYPES_PARNEW(GENERATE_VM_TYPE_ENTRY)
tonyp@2743 2845
tonyp@2743 2846 VM_TYPES_G1(GENERATE_VM_TYPE_ENTRY,
tonyp@2743 2847 GENERATE_TOPLEVEL_VM_TYPE_ENTRY)
jprovino@4184 2848 #endif // INCLUDE_ALL_GCS
duke@0 2849
duke@0 2850 VM_TYPES_CPU(GENERATE_VM_TYPE_ENTRY,
duke@0 2851 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2852 GENERATE_OOP_VM_TYPE_ENTRY,
duke@0 2853 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@0 2854 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@0 2855 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2856 GENERATE_C2_VM_TYPE_ENTRY,
mikael@4068 2857 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
duke@0 2858
duke@0 2859 VM_TYPES_OS_CPU(GENERATE_VM_TYPE_ENTRY,
duke@0 2860 GENERATE_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2861 GENERATE_OOP_VM_TYPE_ENTRY,
duke@0 2862 GENERATE_INTEGER_VM_TYPE_ENTRY,
duke@0 2863 GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY,
duke@0 2864 GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2865 GENERATE_C2_VM_TYPE_ENTRY,
mikael@4068 2866 GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY)
mikael@4068 2867
mikael@4068 2868 GENERATE_VM_TYPE_LAST_ENTRY()
duke@0 2869 };
duke@0 2870
duke@0 2871 VMIntConstantEntry VMStructs::localHotSpotVMIntConstants[] = {
duke@0 2872
duke@0 2873 VM_INT_CONSTANTS(GENERATE_VM_INT_CONSTANT_ENTRY,
duke@0 2874 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
duke@0 2875 GENERATE_C1_VM_INT_CONSTANT_ENTRY,
duke@0 2876 GENERATE_C2_VM_INT_CONSTANT_ENTRY,
mikael@4068 2877 GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY)
duke@0 2878
jprovino@4184 2879 #if INCLUDE_ALL_GCS
duke@0 2880 VM_INT_CONSTANTS_CMS(GENERATE_VM_INT_CONSTANT_ENTRY)
duke@0 2881
duke@0 2882 VM_INT_CONSTANTS_PARNEW(GENERATE_VM_INT_CONSTANT_ENTRY)
jprovino@4184 2883 #endif // INCLUDE_ALL_GCS
duke@0 2884
duke@0 2885 VM_INT_CONSTANTS_CPU(GENERATE_VM_INT_CONSTANT_ENTRY,
duke@0 2886 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
duke@0 2887 GENERATE_C1_VM_INT_CONSTANT_ENTRY,
duke@0 2888 GENERATE_C2_VM_INT_CONSTANT_ENTRY,
mikael@4068 2889 GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY)
duke@0 2890
duke@0 2891 VM_INT_CONSTANTS_OS_CPU(GENERATE_VM_INT_CONSTANT_ENTRY,
duke@0 2892 GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY,
duke@0 2893 GENERATE_C1_VM_INT_CONSTANT_ENTRY,
duke@0 2894 GENERATE_C2_VM_INT_CONSTANT_ENTRY,
mikael@4068 2895 GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY)
mikael@4068 2896
mikael@4068 2897 GENERATE_VM_INT_CONSTANT_LAST_ENTRY()
duke@0 2898 };
duke@0 2899
duke@0 2900 VMLongConstantEntry VMStructs::localHotSpotVMLongConstants[] = {
duke@0 2901
duke@0 2902 VM_LONG_CONSTANTS(GENERATE_VM_LONG_CONSTANT_ENTRY,
duke@0 2903 GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY,
duke@0 2904 GENERATE_C1_VM_LONG_CONSTANT_ENTRY,
duke@0 2905 GENERATE_C2_VM_LONG_CONSTANT_ENTRY,
mikael@4068 2906 GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY)
duke@0 2907
duke@0 2908 VM_LONG_CONSTANTS_CPU(GENERATE_VM_LONG_CONSTANT_ENTRY,
duke@0 2909 GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY,
duke@0 2910 GENERATE_C1_VM_LONG_CONSTANT_ENTRY,
duke@0 2911 GENERATE_C2_VM_LONG_CONSTANT_ENTRY,
mikael@4068 2912 GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY)
duke@0 2913
duke@0 2914 VM_LONG_CONSTANTS_OS_CPU(GENERATE_VM_LONG_CONSTANT_ENTRY,
duke@0 2915 GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY,
duke@0 2916 GENERATE_C1_VM_LONG_CONSTANT_ENTRY,
duke@0 2917 GENERATE_C2_VM_LONG_CONSTANT_ENTRY,
mikael@4068 2918 GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY)
mikael@4068 2919
mikael@4068 2920 GENERATE_VM_LONG_CONSTANT_LAST_ENTRY()
duke@0 2921 };
duke@0 2922
duke@0 2923 // This is used both to check the types of referenced fields and, in
duke@0 2924 // debug builds, to ensure that all of the field types are present.
duke@0 2925 void
duke@0 2926 VMStructs::init() {
duke@0 2927 VM_STRUCTS(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2928 CHECK_STATIC_VM_STRUCT_ENTRY,
duke@0 2929 CHECK_NO_OP,
duke@0 2930 CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2931 CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2932 CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2933 CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2934 CHECK_NO_OP,
mikael@4068 2935 CHECK_NO_OP);
duke@0 2936
jprovino@4184 2937 #if INCLUDE_ALL_GCS
duke@0 2938 VM_STRUCTS_PARALLELGC(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2939 CHECK_STATIC_VM_STRUCT_ENTRY);
duke@0 2940
duke@0 2941 VM_STRUCTS_CMS(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
coleenp@187 2942 CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2943 CHECK_STATIC_VM_STRUCT_ENTRY);
tonyp@2743 2944
tonyp@2743 2945 VM_STRUCTS_G1(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
tonyp@2743 2946 CHECK_STATIC_VM_STRUCT_ENTRY);
jprovino@4184 2947 #endif // INCLUDE_ALL_GCS
duke@0 2948
duke@0 2949 VM_STRUCTS_CPU(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2950 CHECK_STATIC_VM_STRUCT_ENTRY,
duke@0 2951 CHECK_NO_OP,
duke@0 2952 CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2953 CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2954 CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2955 CHECK_NO_OP,
mikael@4068 2956 CHECK_NO_OP);
duke@0 2957
duke@0 2958 VM_STRUCTS_OS_CPU(CHECK_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2959 CHECK_STATIC_VM_STRUCT_ENTRY,
duke@0 2960 CHECK_NO_OP,
duke@0 2961 CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2962 CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2963 CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY,
duke@0 2964 CHECK_NO_OP,
mikael@4068 2965 CHECK_NO_OP);
duke@0 2966
duke@0 2967 VM_TYPES(CHECK_VM_TYPE_ENTRY,
duke@0 2968 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2969 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2970 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2971 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2972 CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2973 CHECK_C2_VM_TYPE_ENTRY,
mikael@4068 2974 CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY);
duke@0 2975
jprovino@4184 2976 #if INCLUDE_ALL_GCS
duke@0 2977 VM_TYPES_PARALLELGC(CHECK_VM_TYPE_ENTRY,
duke@0 2978 CHECK_SINGLE_ARG_VM_TYPE_NO_OP);
duke@0 2979
duke@0 2980 VM_TYPES_CMS(CHECK_VM_TYPE_ENTRY,
duke@0 2981 CHECK_SINGLE_ARG_VM_TYPE_NO_OP);
duke@0 2982
duke@0 2983 VM_TYPES_PARNEW(CHECK_VM_TYPE_ENTRY)
tonyp@2743 2984
tonyp@2743 2985 VM_TYPES_G1(CHECK_VM_TYPE_ENTRY,
tonyp@2743 2986 CHECK_SINGLE_ARG_VM_TYPE_NO_OP);
jprovino@4184 2987 #endif // INCLUDE_ALL_GCS
duke@0 2988
duke@0 2989 VM_TYPES_CPU(CHECK_VM_TYPE_ENTRY,
duke@0 2990 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2991 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2992 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2993 CHECK_SINGLE_ARG_VM_TYPE_NO_OP,
duke@0 2994 CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY,
duke@0 2995 CHECK_C2_VM_TYPE_ENTRY,