src/share/vm/runtime/vmStructs.cpp

Thu, 04 Sep 2014 16:53:27 -0700

author
jcoomes
date
Thu, 04 Sep 2014 16:53:27 -0700
changeset 7117
8ec8971f511a
parent 7089
6e0cb14ce59b
child 7152
166d744df0de
permissions
-rw-r--r--

8057531: refactor gc argument processing code slightly
Reviewed-by: mgerdin, tschatzl, jmasa

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

mercurial