Wed, 17 Sep 2008 19:59:35 +0400
Merge
duke@435 | 1 | /* |
xdono@631 | 2 | * Copyright 2000-2008 Sun Microsystems, Inc. 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 | * |
duke@435 | 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@435 | 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
duke@435 | 21 | * have any questions. |
duke@435 | 22 | * |
duke@435 | 23 | */ |
duke@435 | 24 | |
duke@435 | 25 | # include "incls/_precompiled.incl" |
duke@435 | 26 | # include "incls/_vmStructs.cpp.incl" |
duke@435 | 27 | |
duke@435 | 28 | // Note: the cross-product of (c1, c2, product, nonproduct, ...), |
duke@435 | 29 | // (nonstatic, static), and (unchecked, checked) has not been taken. |
duke@435 | 30 | // Only the macros currently needed have been defined. |
duke@435 | 31 | |
duke@435 | 32 | // A field whose type is not checked is given a null string as the |
duke@435 | 33 | // type name, indicating an "opaque" type to the serviceability agent. |
duke@435 | 34 | |
duke@435 | 35 | // NOTE: there is an interdependency between this file and |
duke@435 | 36 | // HotSpotTypeDataBase.java, which parses the type strings. |
duke@435 | 37 | |
duke@435 | 38 | #ifndef REG_COUNT |
duke@435 | 39 | #define REG_COUNT 0 |
duke@435 | 40 | #endif |
duke@435 | 41 | |
duke@435 | 42 | // whole purpose of this function is to work around bug c++/27724 in gcc 4.1.1 |
duke@435 | 43 | // with optimization turned on it doesn't affect produced code |
duke@435 | 44 | static inline uint64_t cast_uint64_t(size_t x) |
duke@435 | 45 | { |
duke@435 | 46 | return x; |
duke@435 | 47 | } |
duke@435 | 48 | |
duke@435 | 49 | |
duke@435 | 50 | //-------------------------------------------------------------------------------- |
duke@435 | 51 | // VM_STRUCTS |
duke@435 | 52 | // |
duke@435 | 53 | // This list enumerates all of the fields the serviceability agent |
duke@435 | 54 | // needs to know about. Be sure to see also the type table below this one. |
duke@435 | 55 | // NOTE that there are platform-specific additions to this table in |
duke@435 | 56 | // vmStructs_<os>_<cpu>.hpp. |
duke@435 | 57 | |
duke@435 | 58 | #define VM_STRUCTS(nonstatic_field, \ |
duke@435 | 59 | static_field, \ |
duke@435 | 60 | unchecked_nonstatic_field, \ |
duke@435 | 61 | volatile_nonstatic_field, \ |
duke@435 | 62 | nonproduct_nonstatic_field, \ |
duke@435 | 63 | c1_nonstatic_field, \ |
duke@435 | 64 | c2_nonstatic_field, \ |
duke@435 | 65 | unchecked_c1_static_field, \ |
duke@435 | 66 | unchecked_c2_static_field, \ |
duke@435 | 67 | last_entry) \ |
duke@435 | 68 | \ |
duke@435 | 69 | /******************************************************************/ \ |
duke@435 | 70 | /* OopDesc and Klass hierarchies (NOTE: methodDataOop incomplete) */ \ |
duke@435 | 71 | /******************************************************************/ \ |
duke@435 | 72 | \ |
duke@435 | 73 | volatile_nonstatic_field(oopDesc, _mark, markOop) \ |
coleenp@548 | 74 | volatile_nonstatic_field(oopDesc, _metadata._klass, wideKlassOop) \ |
coleenp@548 | 75 | volatile_nonstatic_field(oopDesc, _metadata._compressed_klass, narrowOop) \ |
duke@435 | 76 | static_field(oopDesc, _bs, BarrierSet*) \ |
duke@435 | 77 | nonstatic_field(arrayKlass, _dimension, int) \ |
duke@435 | 78 | nonstatic_field(arrayKlass, _higher_dimension, klassOop) \ |
duke@435 | 79 | nonstatic_field(arrayKlass, _lower_dimension, klassOop) \ |
duke@435 | 80 | nonstatic_field(arrayKlass, _vtable_len, int) \ |
duke@435 | 81 | nonstatic_field(arrayKlass, _alloc_size, juint) \ |
duke@435 | 82 | nonstatic_field(arrayKlass, _component_mirror, oop) \ |
duke@435 | 83 | nonstatic_field(compiledICHolderKlass, _alloc_size, juint) \ |
duke@435 | 84 | nonstatic_field(compiledICHolderOopDesc, _holder_method, methodOop) \ |
duke@435 | 85 | nonstatic_field(compiledICHolderOopDesc, _holder_klass, klassOop) \ |
duke@435 | 86 | nonstatic_field(constantPoolOopDesc, _tags, typeArrayOop) \ |
duke@435 | 87 | nonstatic_field(constantPoolOopDesc, _cache, constantPoolCacheOop) \ |
duke@435 | 88 | nonstatic_field(constantPoolOopDesc, _pool_holder, klassOop) \ |
coleenp@548 | 89 | nonstatic_field(constantPoolOopDesc, _length, int) \ |
coleenp@548 | 90 | nonstatic_field(constantPoolCacheOopDesc, _length, int) \ |
duke@435 | 91 | nonstatic_field(constantPoolCacheOopDesc, _constant_pool, constantPoolOop) \ |
duke@435 | 92 | nonstatic_field(instanceKlass, _array_klasses, klassOop) \ |
duke@435 | 93 | nonstatic_field(instanceKlass, _methods, objArrayOop) \ |
duke@435 | 94 | nonstatic_field(instanceKlass, _method_ordering, typeArrayOop) \ |
duke@435 | 95 | nonstatic_field(instanceKlass, _local_interfaces, objArrayOop) \ |
duke@435 | 96 | nonstatic_field(instanceKlass, _transitive_interfaces, objArrayOop) \ |
duke@435 | 97 | nonstatic_field(instanceKlass, _nof_implementors, int) \ |
duke@435 | 98 | nonstatic_field(instanceKlass, _implementors[0], klassOop) \ |
duke@435 | 99 | nonstatic_field(instanceKlass, _fields, typeArrayOop) \ |
duke@435 | 100 | nonstatic_field(instanceKlass, _constants, constantPoolOop) \ |
duke@435 | 101 | nonstatic_field(instanceKlass, _class_loader, oop) \ |
duke@435 | 102 | nonstatic_field(instanceKlass, _protection_domain, oop) \ |
duke@435 | 103 | nonstatic_field(instanceKlass, _signers, objArrayOop) \ |
duke@435 | 104 | nonstatic_field(instanceKlass, _source_file_name, symbolOop) \ |
duke@435 | 105 | nonstatic_field(instanceKlass, _source_debug_extension, symbolOop) \ |
duke@435 | 106 | nonstatic_field(instanceKlass, _inner_classes, typeArrayOop) \ |
duke@435 | 107 | nonstatic_field(instanceKlass, _nonstatic_field_size, int) \ |
duke@435 | 108 | nonstatic_field(instanceKlass, _static_field_size, int) \ |
duke@435 | 109 | nonstatic_field(instanceKlass, _static_oop_field_size, int) \ |
duke@435 | 110 | nonstatic_field(instanceKlass, _nonstatic_oop_map_size, int) \ |
duke@435 | 111 | nonstatic_field(instanceKlass, _is_marked_dependent, bool) \ |
duke@435 | 112 | nonstatic_field(instanceKlass, _minor_version, u2) \ |
duke@435 | 113 | nonstatic_field(instanceKlass, _major_version, u2) \ |
duke@435 | 114 | nonstatic_field(instanceKlass, _init_state, instanceKlass::ClassState) \ |
duke@435 | 115 | nonstatic_field(instanceKlass, _init_thread, Thread*) \ |
duke@435 | 116 | nonstatic_field(instanceKlass, _vtable_len, int) \ |
duke@435 | 117 | nonstatic_field(instanceKlass, _itable_len, int) \ |
duke@435 | 118 | nonstatic_field(instanceKlass, _reference_type, ReferenceType) \ |
duke@435 | 119 | volatile_nonstatic_field(instanceKlass, _oop_map_cache, OopMapCache*) \ |
duke@435 | 120 | nonstatic_field(instanceKlass, _jni_ids, JNIid*) \ |
duke@435 | 121 | nonstatic_field(instanceKlass, _osr_nmethods_head, nmethod*) \ |
duke@435 | 122 | nonstatic_field(instanceKlass, _breakpoints, BreakpointInfo*) \ |
duke@435 | 123 | nonstatic_field(instanceKlass, _generic_signature, symbolOop) \ |
duke@435 | 124 | nonstatic_field(instanceKlass, _methods_jmethod_ids, jmethodID*) \ |
duke@435 | 125 | nonstatic_field(instanceKlass, _methods_cached_itable_indices, int*) \ |
duke@435 | 126 | volatile_nonstatic_field(instanceKlass, _idnum_allocated_count, u2) \ |
duke@435 | 127 | nonstatic_field(instanceKlass, _class_annotations, typeArrayOop) \ |
duke@435 | 128 | nonstatic_field(instanceKlass, _fields_annotations, objArrayOop) \ |
duke@435 | 129 | nonstatic_field(instanceKlass, _methods_annotations, objArrayOop) \ |
duke@435 | 130 | nonstatic_field(instanceKlass, _methods_parameter_annotations, objArrayOop) \ |
duke@435 | 131 | nonstatic_field(instanceKlass, _methods_default_annotations, objArrayOop) \ |
duke@435 | 132 | nonstatic_field(Klass, _super_check_offset, juint) \ |
duke@435 | 133 | nonstatic_field(Klass, _secondary_super_cache, klassOop) \ |
duke@435 | 134 | nonstatic_field(Klass, _secondary_supers, objArrayOop) \ |
duke@435 | 135 | nonstatic_field(Klass, _primary_supers[0], klassOop) \ |
duke@435 | 136 | nonstatic_field(Klass, _java_mirror, oop) \ |
duke@435 | 137 | nonstatic_field(Klass, _modifier_flags, jint) \ |
duke@435 | 138 | nonstatic_field(Klass, _super, klassOop) \ |
duke@435 | 139 | nonstatic_field(Klass, _layout_helper, jint) \ |
duke@435 | 140 | nonstatic_field(Klass, _name, symbolOop) \ |
duke@435 | 141 | nonstatic_field(Klass, _access_flags, AccessFlags) \ |
duke@435 | 142 | nonstatic_field(Klass, _subklass, klassOop) \ |
duke@435 | 143 | nonstatic_field(Klass, _next_sibling, klassOop) \ |
duke@435 | 144 | nonproduct_nonstatic_field(Klass, _verify_count, int) \ |
duke@435 | 145 | nonstatic_field(Klass, _alloc_count, juint) \ |
duke@435 | 146 | nonstatic_field(klassKlass, _alloc_size, juint) \ |
duke@435 | 147 | nonstatic_field(methodKlass, _alloc_size, juint) \ |
duke@435 | 148 | nonstatic_field(methodDataOopDesc, _size, int) \ |
duke@435 | 149 | nonstatic_field(methodDataOopDesc, _method, methodOop) \ |
duke@435 | 150 | nonstatic_field(methodOopDesc, _constMethod, constMethodOop) \ |
duke@435 | 151 | nonstatic_field(methodOopDesc, _constants, constantPoolOop) \ |
duke@435 | 152 | c2_nonstatic_field(methodOopDesc, _method_data, methodDataOop) \ |
duke@435 | 153 | c2_nonstatic_field(methodOopDesc, _interpreter_invocation_count, int) \ |
duke@435 | 154 | nonstatic_field(methodOopDesc, _access_flags, AccessFlags) \ |
duke@435 | 155 | nonstatic_field(methodOopDesc, _vtable_index, int) \ |
duke@435 | 156 | nonstatic_field(methodOopDesc, _method_size, u2) \ |
duke@435 | 157 | nonstatic_field(methodOopDesc, _max_stack, u2) \ |
duke@435 | 158 | nonstatic_field(methodOopDesc, _max_locals, u2) \ |
duke@435 | 159 | nonstatic_field(methodOopDesc, _size_of_parameters, u2) \ |
duke@435 | 160 | c2_nonstatic_field(methodOopDesc, _interpreter_throwout_count, u2) \ |
duke@435 | 161 | nonstatic_field(methodOopDesc, _number_of_breakpoints, u2) \ |
duke@435 | 162 | nonstatic_field(methodOopDesc, _invocation_counter, InvocationCounter) \ |
duke@435 | 163 | nonstatic_field(methodOopDesc, _backedge_counter, InvocationCounter) \ |
duke@435 | 164 | nonproduct_nonstatic_field(methodOopDesc, _compiled_invocation_count, int) \ |
duke@435 | 165 | volatile_nonstatic_field(methodOopDesc, _code, nmethod*) \ |
duke@435 | 166 | nonstatic_field(methodOopDesc, _i2i_entry, address) \ |
duke@435 | 167 | nonstatic_field(methodOopDesc, _adapter, AdapterHandlerEntry*) \ |
duke@435 | 168 | volatile_nonstatic_field(methodOopDesc, _from_compiled_entry, address) \ |
duke@435 | 169 | volatile_nonstatic_field(methodOopDesc, _from_interpreted_entry, address) \ |
duke@435 | 170 | volatile_nonstatic_field(constMethodOopDesc, _fingerprint, uint64_t) \ |
duke@435 | 171 | nonstatic_field(constMethodOopDesc, _method, methodOop) \ |
duke@435 | 172 | nonstatic_field(constMethodOopDesc, _stackmap_data, typeArrayOop) \ |
duke@435 | 173 | nonstatic_field(constMethodOopDesc, _exception_table, typeArrayOop) \ |
duke@435 | 174 | nonstatic_field(constMethodOopDesc, _constMethod_size, int) \ |
duke@435 | 175 | nonstatic_field(constMethodOopDesc, _interpreter_kind, jbyte) \ |
duke@435 | 176 | nonstatic_field(constMethodOopDesc, _flags, jbyte) \ |
duke@435 | 177 | nonstatic_field(constMethodOopDesc, _code_size, u2) \ |
duke@435 | 178 | nonstatic_field(constMethodOopDesc, _name_index, u2) \ |
duke@435 | 179 | nonstatic_field(constMethodOopDesc, _signature_index, u2) \ |
duke@435 | 180 | nonstatic_field(constMethodOopDesc, _method_idnum, u2) \ |
duke@435 | 181 | nonstatic_field(constMethodOopDesc, _generic_signature_index, u2) \ |
duke@435 | 182 | nonstatic_field(objArrayKlass, _element_klass, klassOop) \ |
duke@435 | 183 | nonstatic_field(objArrayKlass, _bottom_klass, klassOop) \ |
duke@435 | 184 | nonstatic_field(symbolKlass, _alloc_size, juint) \ |
duke@435 | 185 | nonstatic_field(symbolOopDesc, _length, unsigned short) \ |
duke@435 | 186 | unchecked_nonstatic_field(symbolOopDesc, _body, sizeof(jbyte)) /* NOTE: no type */ \ |
duke@435 | 187 | nonstatic_field(typeArrayKlass, _max_length, int) \ |
duke@435 | 188 | \ |
duke@435 | 189 | /***********************/ \ |
duke@435 | 190 | /* Constant Pool Cache */ \ |
duke@435 | 191 | /***********************/ \ |
duke@435 | 192 | \ |
duke@435 | 193 | volatile_nonstatic_field(ConstantPoolCacheEntry, _indices, intx) \ |
duke@435 | 194 | volatile_nonstatic_field(ConstantPoolCacheEntry, _f1, oop) \ |
duke@435 | 195 | volatile_nonstatic_field(ConstantPoolCacheEntry, _f2, intx) \ |
duke@435 | 196 | volatile_nonstatic_field(ConstantPoolCacheEntry, _flags, intx) \ |
duke@435 | 197 | \ |
duke@435 | 198 | /********************************/ \ |
duke@435 | 199 | /* MethodOop-related structures */ \ |
duke@435 | 200 | /********************************/ \ |
duke@435 | 201 | \ |
duke@435 | 202 | nonstatic_field(CheckedExceptionElement, class_cp_index, u2) \ |
duke@435 | 203 | nonstatic_field(LocalVariableTableElement, start_bci, u2) \ |
duke@435 | 204 | nonstatic_field(LocalVariableTableElement, length, u2) \ |
duke@435 | 205 | nonstatic_field(LocalVariableTableElement, name_cp_index, u2) \ |
duke@435 | 206 | nonstatic_field(LocalVariableTableElement, descriptor_cp_index, u2) \ |
duke@435 | 207 | nonstatic_field(LocalVariableTableElement, signature_cp_index, u2) \ |
duke@435 | 208 | nonstatic_field(LocalVariableTableElement, slot, u2) \ |
duke@435 | 209 | nonstatic_field(BreakpointInfo, _orig_bytecode, Bytecodes::Code) \ |
duke@435 | 210 | nonstatic_field(BreakpointInfo, _bci, int) \ |
duke@435 | 211 | nonstatic_field(BreakpointInfo, _name_index, u2) \ |
duke@435 | 212 | nonstatic_field(BreakpointInfo, _signature_index, u2) \ |
duke@435 | 213 | nonstatic_field(BreakpointInfo, _next, BreakpointInfo*) \ |
duke@435 | 214 | /***********/ \ |
duke@435 | 215 | /* JNI IDs */ \ |
duke@435 | 216 | /***********/ \ |
duke@435 | 217 | \ |
duke@435 | 218 | nonstatic_field(JNIid, _holder, klassOop) \ |
duke@435 | 219 | nonstatic_field(JNIid, _next, JNIid*) \ |
duke@435 | 220 | nonstatic_field(JNIid, _offset, int) \ |
duke@435 | 221 | /************/ \ |
duke@435 | 222 | /* Universe */ \ |
duke@435 | 223 | /************/ \ |
duke@435 | 224 | \ |
duke@435 | 225 | static_field(Universe, _boolArrayKlassObj, klassOop) \ |
duke@435 | 226 | static_field(Universe, _byteArrayKlassObj, klassOop) \ |
duke@435 | 227 | static_field(Universe, _charArrayKlassObj, klassOop) \ |
duke@435 | 228 | static_field(Universe, _intArrayKlassObj, klassOop) \ |
duke@435 | 229 | static_field(Universe, _shortArrayKlassObj, klassOop) \ |
duke@435 | 230 | static_field(Universe, _longArrayKlassObj, klassOop) \ |
duke@435 | 231 | static_field(Universe, _singleArrayKlassObj, klassOop) \ |
duke@435 | 232 | static_field(Universe, _doubleArrayKlassObj, klassOop) \ |
duke@435 | 233 | static_field(Universe, _symbolKlassObj, klassOop) \ |
duke@435 | 234 | static_field(Universe, _methodKlassObj, klassOop) \ |
duke@435 | 235 | static_field(Universe, _constMethodKlassObj, klassOop) \ |
duke@435 | 236 | static_field(Universe, _methodDataKlassObj, klassOop) \ |
duke@435 | 237 | static_field(Universe, _klassKlassObj, klassOop) \ |
duke@435 | 238 | static_field(Universe, _arrayKlassKlassObj, klassOop) \ |
duke@435 | 239 | static_field(Universe, _objArrayKlassKlassObj, klassOop) \ |
duke@435 | 240 | static_field(Universe, _typeArrayKlassKlassObj, klassOop) \ |
duke@435 | 241 | static_field(Universe, _instanceKlassKlassObj, klassOop) \ |
duke@435 | 242 | static_field(Universe, _constantPoolKlassObj, klassOop) \ |
duke@435 | 243 | static_field(Universe, _constantPoolCacheKlassObj, klassOop) \ |
duke@435 | 244 | static_field(Universe, _compiledICHolderKlassObj, klassOop) \ |
duke@435 | 245 | static_field(Universe, _systemObjArrayKlassObj, klassOop) \ |
duke@435 | 246 | static_field(Universe, _mirrors[0], oop) \ |
duke@435 | 247 | static_field(Universe, _main_thread_group, oop) \ |
duke@435 | 248 | static_field(Universe, _system_thread_group, oop) \ |
duke@435 | 249 | static_field(Universe, _the_empty_byte_array, typeArrayOop) \ |
duke@435 | 250 | static_field(Universe, _the_empty_short_array, typeArrayOop) \ |
duke@435 | 251 | static_field(Universe, _the_empty_int_array, typeArrayOop) \ |
duke@435 | 252 | static_field(Universe, _the_empty_system_obj_array, objArrayOop) \ |
duke@435 | 253 | static_field(Universe, _the_empty_class_klass_array, objArrayOop) \ |
duke@435 | 254 | static_field(Universe, _out_of_memory_error_java_heap, oop) \ |
duke@435 | 255 | static_field(Universe, _out_of_memory_error_perm_gen, oop) \ |
duke@435 | 256 | static_field(Universe, _out_of_memory_error_array_size, oop) \ |
duke@435 | 257 | static_field(Universe, _out_of_memory_error_gc_overhead_limit, oop) \ |
duke@435 | 258 | static_field(Universe, _null_ptr_exception_instance, oop) \ |
duke@435 | 259 | static_field(Universe, _arithmetic_exception_instance, oop) \ |
duke@435 | 260 | static_field(Universe, _vm_exception, oop) \ |
duke@435 | 261 | static_field(Universe, _collectedHeap, CollectedHeap*) \ |
duke@435 | 262 | static_field(Universe, _base_vtable_size, int) \ |
duke@435 | 263 | static_field(Universe, _bootstrapping, bool) \ |
duke@435 | 264 | static_field(Universe, _fully_initialized, bool) \ |
duke@435 | 265 | static_field(Universe, _verify_count, int) \ |
coleenp@548 | 266 | static_field(Universe, _heap_base, address) \ |
duke@435 | 267 | \ |
duke@435 | 268 | /**********************************************************************************/ \ |
duke@435 | 269 | /* Generation and Space hierarchies */ \ |
duke@435 | 270 | /**********************************************************************************/ \ |
duke@435 | 271 | \ |
duke@435 | 272 | unchecked_nonstatic_field(ageTable, sizes, sizeof(ageTable::sizes)) \ |
duke@435 | 273 | \ |
duke@435 | 274 | nonstatic_field(BarrierSet, _max_covered_regions, int) \ |
duke@435 | 275 | nonstatic_field(BlockOffsetTable, _bottom, HeapWord*) \ |
duke@435 | 276 | nonstatic_field(BlockOffsetTable, _end, HeapWord*) \ |
duke@435 | 277 | \ |
duke@435 | 278 | nonstatic_field(BlockOffsetSharedArray, _reserved, MemRegion) \ |
duke@435 | 279 | nonstatic_field(BlockOffsetSharedArray, _end, HeapWord*) \ |
duke@435 | 280 | nonstatic_field(BlockOffsetSharedArray, _vs, VirtualSpace) \ |
duke@435 | 281 | nonstatic_field(BlockOffsetSharedArray, _offset_array, u_char*) \ |
duke@435 | 282 | \ |
duke@435 | 283 | nonstatic_field(BlockOffsetArray, _array, BlockOffsetSharedArray*) \ |
duke@435 | 284 | nonstatic_field(BlockOffsetArray, _sp, Space*) \ |
duke@435 | 285 | nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_threshold, HeapWord*) \ |
duke@435 | 286 | nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_index, size_t) \ |
duke@435 | 287 | \ |
duke@435 | 288 | nonstatic_field(BlockOffsetArrayNonContigSpace, _unallocated_block, HeapWord*) \ |
duke@435 | 289 | \ |
duke@435 | 290 | nonstatic_field(CardGeneration, _rs, GenRemSet*) \ |
duke@435 | 291 | nonstatic_field(CardGeneration, _bts, BlockOffsetSharedArray*) \ |
duke@435 | 292 | \ |
duke@435 | 293 | nonstatic_field(CardTableModRefBS, _whole_heap, const MemRegion) \ |
duke@435 | 294 | nonstatic_field(CardTableModRefBS, _guard_index, const size_t) \ |
duke@435 | 295 | nonstatic_field(CardTableModRefBS, _last_valid_index, const size_t) \ |
duke@435 | 296 | nonstatic_field(CardTableModRefBS, _page_size, const size_t) \ |
duke@435 | 297 | nonstatic_field(CardTableModRefBS, _byte_map_size, const size_t) \ |
duke@435 | 298 | nonstatic_field(CardTableModRefBS, _byte_map, jbyte*) \ |
duke@435 | 299 | nonstatic_field(CardTableModRefBS, _cur_covered_regions, int) \ |
duke@435 | 300 | nonstatic_field(CardTableModRefBS, _covered, MemRegion*) \ |
duke@435 | 301 | nonstatic_field(CardTableModRefBS, _committed, MemRegion*) \ |
duke@435 | 302 | nonstatic_field(CardTableModRefBS, _guard_region, MemRegion) \ |
duke@435 | 303 | nonstatic_field(CardTableModRefBS, byte_map_base, jbyte*) \ |
duke@435 | 304 | \ |
ysr@777 | 305 | nonstatic_field(CardTableRS, _ct_bs, CardTableModRefBSForCTRS*) \ |
duke@435 | 306 | \ |
duke@435 | 307 | nonstatic_field(CollectedHeap, _reserved, MemRegion) \ |
duke@435 | 308 | nonstatic_field(SharedHeap, _perm_gen, PermGen*) \ |
duke@435 | 309 | nonstatic_field(CollectedHeap, _barrier_set, BarrierSet*) \ |
duke@435 | 310 | nonstatic_field(CollectedHeap, _is_gc_active, bool) \ |
duke@435 | 311 | nonstatic_field(CompactibleSpace, _compaction_top, HeapWord*) \ |
duke@435 | 312 | nonstatic_field(CompactibleSpace, _first_dead, HeapWord*) \ |
duke@435 | 313 | nonstatic_field(CompactibleSpace, _end_of_live, HeapWord*) \ |
duke@435 | 314 | \ |
duke@435 | 315 | nonstatic_field(CompactingPermGen, _gen, OneContigSpaceCardGeneration*) \ |
duke@435 | 316 | \ |
duke@435 | 317 | nonstatic_field(ContiguousSpace, _top, HeapWord*) \ |
duke@435 | 318 | nonstatic_field(ContiguousSpace, _concurrent_iteration_safe_limit, HeapWord*) \ |
duke@435 | 319 | nonstatic_field(ContiguousSpace, _saved_mark_word, HeapWord*) \ |
duke@435 | 320 | \ |
duke@435 | 321 | nonstatic_field(DefNewGeneration, _next_gen, Generation*) \ |
duke@435 | 322 | nonstatic_field(DefNewGeneration, _tenuring_threshold, int) \ |
duke@435 | 323 | nonstatic_field(DefNewGeneration, _age_table, ageTable) \ |
duke@435 | 324 | nonstatic_field(DefNewGeneration, _eden_space, EdenSpace*) \ |
duke@435 | 325 | nonstatic_field(DefNewGeneration, _from_space, ContiguousSpace*) \ |
duke@435 | 326 | nonstatic_field(DefNewGeneration, _to_space, ContiguousSpace*) \ |
duke@435 | 327 | \ |
duke@435 | 328 | nonstatic_field(EdenSpace, _gen, DefNewGeneration*) \ |
duke@435 | 329 | \ |
duke@435 | 330 | nonstatic_field(Generation, _reserved, MemRegion) \ |
duke@435 | 331 | nonstatic_field(Generation, _virtual_space, VirtualSpace) \ |
duke@435 | 332 | nonstatic_field(Generation, _level, int) \ |
duke@435 | 333 | nonstatic_field(Generation, _stat_record, Generation::StatRecord) \ |
duke@435 | 334 | \ |
duke@435 | 335 | nonstatic_field(Generation::StatRecord, invocations, int) \ |
duke@435 | 336 | nonstatic_field(Generation::StatRecord, accumulated_time, elapsedTimer) \ |
duke@435 | 337 | \ |
duke@435 | 338 | nonstatic_field(GenerationSpec, _name, Generation::Name) \ |
duke@435 | 339 | nonstatic_field(GenerationSpec, _init_size, size_t) \ |
duke@435 | 340 | nonstatic_field(GenerationSpec, _max_size, size_t) \ |
duke@435 | 341 | \ |
duke@435 | 342 | static_field(GenCollectedHeap, _gch, GenCollectedHeap*) \ |
duke@435 | 343 | nonstatic_field(GenCollectedHeap, _n_gens, int) \ |
duke@435 | 344 | unchecked_nonstatic_field(GenCollectedHeap, _gens, sizeof(GenCollectedHeap::_gens)) /* NOTE: no type */ \ |
duke@435 | 345 | nonstatic_field(GenCollectedHeap, _gen_specs, GenerationSpec**) \ |
duke@435 | 346 | \ |
duke@435 | 347 | nonstatic_field(HeapWord, i, char*) \ |
duke@435 | 348 | \ |
duke@435 | 349 | nonstatic_field(MemRegion, _start, HeapWord*) \ |
duke@435 | 350 | nonstatic_field(MemRegion, _word_size, size_t) \ |
duke@435 | 351 | \ |
duke@435 | 352 | nonstatic_field(OffsetTableContigSpace, _offsets, BlockOffsetArray) \ |
duke@435 | 353 | \ |
duke@435 | 354 | nonstatic_field(OneContigSpaceCardGeneration, _min_heap_delta_bytes, size_t) \ |
duke@435 | 355 | nonstatic_field(OneContigSpaceCardGeneration, _the_space, ContiguousSpace*) \ |
duke@435 | 356 | nonstatic_field(OneContigSpaceCardGeneration, _last_gc, WaterMark) \ |
duke@435 | 357 | \ |
duke@435 | 358 | nonstatic_field(CompactingPermGenGen, _ro_vs, VirtualSpace) \ |
duke@435 | 359 | nonstatic_field(CompactingPermGenGen, _rw_vs, VirtualSpace) \ |
duke@435 | 360 | nonstatic_field(CompactingPermGenGen, _md_vs, VirtualSpace) \ |
duke@435 | 361 | nonstatic_field(CompactingPermGenGen, _mc_vs, VirtualSpace) \ |
duke@435 | 362 | nonstatic_field(CompactingPermGenGen, _ro_space, OffsetTableContigSpace*) \ |
duke@435 | 363 | nonstatic_field(CompactingPermGenGen, _rw_space, OffsetTableContigSpace*) \ |
duke@435 | 364 | static_field(CompactingPermGenGen, unshared_bottom, HeapWord*) \ |
duke@435 | 365 | static_field(CompactingPermGenGen, unshared_end, HeapWord*) \ |
duke@435 | 366 | static_field(CompactingPermGenGen, shared_bottom, HeapWord*) \ |
duke@435 | 367 | static_field(CompactingPermGenGen, readonly_bottom, HeapWord*) \ |
duke@435 | 368 | static_field(CompactingPermGenGen, readonly_end, HeapWord*) \ |
duke@435 | 369 | static_field(CompactingPermGenGen, readwrite_bottom, HeapWord*) \ |
duke@435 | 370 | static_field(CompactingPermGenGen, readwrite_end, HeapWord*) \ |
duke@435 | 371 | static_field(CompactingPermGenGen, miscdata_bottom, HeapWord*) \ |
duke@435 | 372 | static_field(CompactingPermGenGen, miscdata_end, HeapWord*) \ |
duke@435 | 373 | static_field(CompactingPermGenGen, misccode_bottom, HeapWord*) \ |
duke@435 | 374 | static_field(CompactingPermGenGen, misccode_end, HeapWord*) \ |
duke@435 | 375 | static_field(CompactingPermGenGen, shared_end, HeapWord*) \ |
duke@435 | 376 | \ |
duke@435 | 377 | nonstatic_field(PermGen, _capacity_expansion_limit, size_t) \ |
duke@435 | 378 | \ |
duke@435 | 379 | nonstatic_field(PermanentGenerationSpec, _name, PermGen::Name) \ |
duke@435 | 380 | nonstatic_field(PermanentGenerationSpec, _init_size, size_t) \ |
duke@435 | 381 | nonstatic_field(PermanentGenerationSpec, _max_size, size_t) \ |
duke@435 | 382 | \ |
duke@435 | 383 | nonstatic_field(Space, _bottom, HeapWord*) \ |
duke@435 | 384 | nonstatic_field(Space, _end, HeapWord*) \ |
duke@435 | 385 | \ |
duke@435 | 386 | nonstatic_field(TenuredGeneration, _shrink_factor, size_t) \ |
duke@435 | 387 | nonstatic_field(TenuredGeneration, _capacity_at_prologue, size_t) \ |
duke@435 | 388 | nonstatic_field(ThreadLocalAllocBuffer, _start, HeapWord*) \ |
duke@435 | 389 | nonstatic_field(ThreadLocalAllocBuffer, _top, HeapWord*) \ |
duke@435 | 390 | nonstatic_field(ThreadLocalAllocBuffer, _end, HeapWord*) \ |
duke@435 | 391 | nonstatic_field(ThreadLocalAllocBuffer, _desired_size, size_t) \ |
duke@435 | 392 | nonstatic_field(ThreadLocalAllocBuffer, _refill_waste_limit, size_t) \ |
duke@435 | 393 | static_field(ThreadLocalAllocBuffer, _target_refills, unsigned) \ |
duke@435 | 394 | nonstatic_field(VirtualSpace, _low_boundary, char*) \ |
duke@435 | 395 | nonstatic_field(VirtualSpace, _high_boundary, char*) \ |
duke@435 | 396 | nonstatic_field(VirtualSpace, _low, char*) \ |
duke@435 | 397 | nonstatic_field(VirtualSpace, _high, char*) \ |
duke@435 | 398 | nonstatic_field(VirtualSpace, _lower_high, char*) \ |
duke@435 | 399 | nonstatic_field(VirtualSpace, _middle_high, char*) \ |
duke@435 | 400 | nonstatic_field(VirtualSpace, _upper_high, char*) \ |
duke@435 | 401 | nonstatic_field(WaterMark, _point, HeapWord*) \ |
duke@435 | 402 | nonstatic_field(WaterMark, _space, Space*) \ |
duke@435 | 403 | \ |
duke@435 | 404 | /************************/ \ |
duke@435 | 405 | /* PerfMemory - jvmstat */ \ |
duke@435 | 406 | /************************/ \ |
duke@435 | 407 | \ |
duke@435 | 408 | nonstatic_field(PerfDataPrologue, magic, jint) \ |
duke@435 | 409 | nonstatic_field(PerfDataPrologue, byte_order, jbyte) \ |
duke@435 | 410 | nonstatic_field(PerfDataPrologue, major_version, jbyte) \ |
duke@435 | 411 | nonstatic_field(PerfDataPrologue, minor_version, jbyte) \ |
duke@435 | 412 | nonstatic_field(PerfDataPrologue, accessible, jbyte) \ |
duke@435 | 413 | nonstatic_field(PerfDataPrologue, used, jint) \ |
duke@435 | 414 | nonstatic_field(PerfDataPrologue, overflow, jint) \ |
duke@435 | 415 | nonstatic_field(PerfDataPrologue, mod_time_stamp, jlong) \ |
duke@435 | 416 | nonstatic_field(PerfDataPrologue, entry_offset, jint) \ |
duke@435 | 417 | nonstatic_field(PerfDataPrologue, num_entries, jint) \ |
duke@435 | 418 | \ |
duke@435 | 419 | nonstatic_field(PerfDataEntry, entry_length, jint) \ |
duke@435 | 420 | nonstatic_field(PerfDataEntry, name_offset, jint) \ |
duke@435 | 421 | nonstatic_field(PerfDataEntry, vector_length, jint) \ |
duke@435 | 422 | nonstatic_field(PerfDataEntry, data_type, jbyte) \ |
duke@435 | 423 | nonstatic_field(PerfDataEntry, flags, jbyte) \ |
duke@435 | 424 | nonstatic_field(PerfDataEntry, data_units, jbyte) \ |
duke@435 | 425 | nonstatic_field(PerfDataEntry, data_variability, jbyte) \ |
duke@435 | 426 | nonstatic_field(PerfDataEntry, data_offset, jint) \ |
duke@435 | 427 | \ |
duke@435 | 428 | static_field(PerfMemory, _start, char*) \ |
duke@435 | 429 | static_field(PerfMemory, _end, char*) \ |
duke@435 | 430 | static_field(PerfMemory, _top, char*) \ |
duke@435 | 431 | static_field(PerfMemory, _capacity, size_t) \ |
duke@435 | 432 | static_field(PerfMemory, _prologue, PerfDataPrologue*) \ |
duke@435 | 433 | static_field(PerfMemory, _initialized, jint) \ |
duke@435 | 434 | \ |
duke@435 | 435 | /***************/ \ |
duke@435 | 436 | /* SymbolTable */ \ |
duke@435 | 437 | /***************/ \ |
duke@435 | 438 | \ |
duke@435 | 439 | static_field(SymbolTable, _the_table, SymbolTable*) \ |
duke@435 | 440 | \ |
duke@435 | 441 | /***************/ \ |
duke@435 | 442 | /* StringTable */ \ |
duke@435 | 443 | /***************/ \ |
duke@435 | 444 | \ |
duke@435 | 445 | static_field(StringTable, _the_table, StringTable*) \ |
duke@435 | 446 | \ |
duke@435 | 447 | /********************/ \ |
duke@435 | 448 | /* SystemDictionary */ \ |
duke@435 | 449 | /********************/ \ |
duke@435 | 450 | \ |
duke@435 | 451 | static_field(SystemDictionary, _dictionary, Dictionary*) \ |
duke@435 | 452 | static_field(SystemDictionary, _placeholders, PlaceholderTable*) \ |
duke@435 | 453 | static_field(SystemDictionary, _shared_dictionary, Dictionary*) \ |
duke@435 | 454 | static_field(SystemDictionary, _system_loader_lock_obj, oop) \ |
duke@435 | 455 | static_field(SystemDictionary, _loader_constraints, LoaderConstraintTable*) \ |
jrose@582 | 456 | static_field(SystemDictionary, WK_KLASS(object_klass), klassOop) \ |
jrose@582 | 457 | static_field(SystemDictionary, WK_KLASS(string_klass), klassOop) \ |
jrose@582 | 458 | static_field(SystemDictionary, WK_KLASS(class_klass), klassOop) \ |
jrose@582 | 459 | static_field(SystemDictionary, WK_KLASS(cloneable_klass), klassOop) \ |
jrose@582 | 460 | static_field(SystemDictionary, WK_KLASS(classloader_klass), klassOop) \ |
jrose@582 | 461 | static_field(SystemDictionary, WK_KLASS(serializable_klass), klassOop) \ |
jrose@582 | 462 | static_field(SystemDictionary, WK_KLASS(system_klass), klassOop) \ |
jrose@582 | 463 | static_field(SystemDictionary, WK_KLASS(throwable_klass), klassOop) \ |
jrose@582 | 464 | static_field(SystemDictionary, WK_KLASS(threaddeath_klass), klassOop) \ |
jrose@582 | 465 | static_field(SystemDictionary, WK_KLASS(error_klass), klassOop) \ |
jrose@582 | 466 | static_field(SystemDictionary, WK_KLASS(exception_klass), klassOop) \ |
jrose@582 | 467 | static_field(SystemDictionary, WK_KLASS(runtime_exception_klass), klassOop) \ |
jrose@582 | 468 | static_field(SystemDictionary, WK_KLASS(classNotFoundException_klass), klassOop) \ |
jrose@582 | 469 | static_field(SystemDictionary, WK_KLASS(noClassDefFoundError_klass), klassOop) \ |
jrose@582 | 470 | static_field(SystemDictionary, WK_KLASS(linkageError_klass), klassOop) \ |
jrose@582 | 471 | static_field(SystemDictionary, WK_KLASS(ClassCastException_klass), klassOop) \ |
jrose@582 | 472 | static_field(SystemDictionary, WK_KLASS(ArrayStoreException_klass), klassOop) \ |
jrose@582 | 473 | static_field(SystemDictionary, WK_KLASS(virtualMachineError_klass), klassOop) \ |
jrose@582 | 474 | static_field(SystemDictionary, WK_KLASS(OutOfMemoryError_klass), klassOop) \ |
jrose@582 | 475 | static_field(SystemDictionary, WK_KLASS(StackOverflowError_klass), klassOop) \ |
jrose@582 | 476 | static_field(SystemDictionary, WK_KLASS(protectionDomain_klass), klassOop) \ |
jrose@582 | 477 | static_field(SystemDictionary, WK_KLASS(AccessControlContext_klass), klassOop) \ |
jrose@582 | 478 | static_field(SystemDictionary, WK_KLASS(reference_klass), klassOop) \ |
jrose@582 | 479 | static_field(SystemDictionary, WK_KLASS(soft_reference_klass), klassOop) \ |
jrose@582 | 480 | static_field(SystemDictionary, WK_KLASS(weak_reference_klass), klassOop) \ |
jrose@582 | 481 | static_field(SystemDictionary, WK_KLASS(final_reference_klass), klassOop) \ |
jrose@582 | 482 | static_field(SystemDictionary, WK_KLASS(phantom_reference_klass), klassOop) \ |
jrose@582 | 483 | static_field(SystemDictionary, WK_KLASS(finalizer_klass), klassOop) \ |
jrose@582 | 484 | static_field(SystemDictionary, WK_KLASS(thread_klass), klassOop) \ |
jrose@582 | 485 | static_field(SystemDictionary, WK_KLASS(threadGroup_klass), klassOop) \ |
jrose@582 | 486 | static_field(SystemDictionary, WK_KLASS(properties_klass), klassOop) \ |
jrose@582 | 487 | static_field(SystemDictionary, WK_KLASS(stringBuffer_klass), klassOop) \ |
jrose@582 | 488 | static_field(SystemDictionary, WK_KLASS(vector_klass), klassOop) \ |
jrose@582 | 489 | static_field(SystemDictionary, WK_KLASS(hashtable_klass), klassOop) \ |
duke@435 | 490 | static_field(SystemDictionary, _box_klasses[0], klassOop) \ |
duke@435 | 491 | static_field(SystemDictionary, _java_system_loader, oop) \ |
duke@435 | 492 | \ |
duke@435 | 493 | /*******************/ \ |
duke@435 | 494 | /* HashtableBucket */ \ |
duke@435 | 495 | /*******************/ \ |
duke@435 | 496 | \ |
duke@435 | 497 | nonstatic_field(HashtableBucket, _entry, BasicHashtableEntry*) \ |
duke@435 | 498 | \ |
duke@435 | 499 | /******************/ \ |
duke@435 | 500 | /* HashtableEntry */ \ |
duke@435 | 501 | /******************/ \ |
duke@435 | 502 | \ |
duke@435 | 503 | nonstatic_field(BasicHashtableEntry, _next, BasicHashtableEntry*) \ |
duke@435 | 504 | nonstatic_field(BasicHashtableEntry, _hash, unsigned int) \ |
duke@435 | 505 | nonstatic_field(HashtableEntry, _literal, oop) \ |
duke@435 | 506 | \ |
duke@435 | 507 | /*************/ \ |
duke@435 | 508 | /* Hashtable */ \ |
duke@435 | 509 | /*************/ \ |
duke@435 | 510 | \ |
duke@435 | 511 | nonstatic_field(BasicHashtable, _table_size, int) \ |
duke@435 | 512 | nonstatic_field(BasicHashtable, _buckets, HashtableBucket*) \ |
duke@435 | 513 | nonstatic_field(BasicHashtable, _free_list, BasicHashtableEntry*) \ |
duke@435 | 514 | nonstatic_field(BasicHashtable, _first_free_entry, char*) \ |
duke@435 | 515 | nonstatic_field(BasicHashtable, _end_block, char*) \ |
duke@435 | 516 | nonstatic_field(BasicHashtable, _entry_size, int) \ |
duke@435 | 517 | \ |
duke@435 | 518 | /*******************/ \ |
duke@435 | 519 | /* DictionaryEntry */ \ |
duke@435 | 520 | /*******************/ \ |
duke@435 | 521 | \ |
duke@435 | 522 | nonstatic_field(DictionaryEntry, _loader, oop) \ |
duke@435 | 523 | nonstatic_field(DictionaryEntry, _pd_set, ProtectionDomainEntry*) \ |
duke@435 | 524 | \ |
duke@435 | 525 | /********************/ \ |
duke@435 | 526 | \ |
duke@435 | 527 | nonstatic_field(PlaceholderEntry, _loader, oop) \ |
duke@435 | 528 | \ |
duke@435 | 529 | /**************************/ \ |
duke@435 | 530 | /* ProctectionDomainEntry */ \ |
duke@435 | 531 | /**************************/ \ |
duke@435 | 532 | \ |
duke@435 | 533 | nonstatic_field(ProtectionDomainEntry, _next, ProtectionDomainEntry*) \ |
duke@435 | 534 | nonstatic_field(ProtectionDomainEntry, _protection_domain, oop) \ |
duke@435 | 535 | \ |
duke@435 | 536 | /*************************/ \ |
duke@435 | 537 | /* LoaderConstraintEntry */ \ |
duke@435 | 538 | /*************************/ \ |
duke@435 | 539 | \ |
duke@435 | 540 | nonstatic_field(LoaderConstraintEntry, _name, symbolOop) \ |
duke@435 | 541 | nonstatic_field(LoaderConstraintEntry, _num_loaders, int) \ |
duke@435 | 542 | nonstatic_field(LoaderConstraintEntry, _max_loaders, int) \ |
duke@435 | 543 | nonstatic_field(LoaderConstraintEntry, _loaders, oop*) \ |
duke@435 | 544 | \ |
duke@435 | 545 | /********************************/ \ |
duke@435 | 546 | /* CodeCache (NOTE: incomplete) */ \ |
duke@435 | 547 | /********************************/ \ |
duke@435 | 548 | \ |
duke@435 | 549 | static_field(CodeCache, _heap, CodeHeap*) \ |
duke@435 | 550 | \ |
duke@435 | 551 | /*******************************/ \ |
duke@435 | 552 | /* CodeHeap (NOTE: incomplete) */ \ |
duke@435 | 553 | /*******************************/ \ |
duke@435 | 554 | \ |
duke@435 | 555 | nonstatic_field(CodeHeap, _memory, VirtualSpace) \ |
duke@435 | 556 | nonstatic_field(CodeHeap, _segmap, VirtualSpace) \ |
duke@435 | 557 | nonstatic_field(CodeHeap, _log2_segment_size, int) \ |
duke@435 | 558 | nonstatic_field(HeapBlock, _header, HeapBlock::Header) \ |
duke@435 | 559 | nonstatic_field(HeapBlock::Header, _length, size_t) \ |
duke@435 | 560 | nonstatic_field(HeapBlock::Header, _used, bool) \ |
duke@435 | 561 | \ |
duke@435 | 562 | /**********************************/ \ |
duke@435 | 563 | /* Interpreter (NOTE: incomplete) */ \ |
duke@435 | 564 | /**********************************/ \ |
duke@435 | 565 | \ |
duke@435 | 566 | static_field(AbstractInterpreter, _code, StubQueue*) \ |
duke@435 | 567 | \ |
duke@435 | 568 | /****************************/ \ |
duke@435 | 569 | /* Stubs (NOTE: incomplete) */ \ |
duke@435 | 570 | /****************************/ \ |
duke@435 | 571 | \ |
duke@435 | 572 | nonstatic_field(StubQueue, _stub_buffer, address) \ |
duke@435 | 573 | nonstatic_field(StubQueue, _buffer_limit, int) \ |
duke@435 | 574 | nonstatic_field(StubQueue, _queue_begin, int) \ |
duke@435 | 575 | nonstatic_field(StubQueue, _queue_end, int) \ |
duke@435 | 576 | nonstatic_field(StubQueue, _number_of_stubs, int) \ |
duke@435 | 577 | nonstatic_field(InterpreterCodelet, _size, int) \ |
duke@435 | 578 | nonstatic_field(InterpreterCodelet, _description, const char*) \ |
duke@435 | 579 | nonstatic_field(InterpreterCodelet, _bytecode, Bytecodes::Code) \ |
duke@435 | 580 | \ |
duke@435 | 581 | /***********************************/ \ |
duke@435 | 582 | /* StubRoutines (NOTE: incomplete) */ \ |
duke@435 | 583 | /***********************************/ \ |
duke@435 | 584 | \ |
duke@435 | 585 | static_field(StubRoutines, _call_stub_return_address, address) \ |
never@739 | 586 | IA32_ONLY(static_field(StubRoutines::x86,_call_stub_compiled_return, address)) \ |
duke@435 | 587 | \ |
duke@435 | 588 | /***************************************/ \ |
duke@435 | 589 | /* PcDesc and other compiled code info */ \ |
duke@435 | 590 | /***************************************/ \ |
duke@435 | 591 | \ |
duke@435 | 592 | nonstatic_field(PcDesc, _pc_offset, int) \ |
duke@435 | 593 | nonstatic_field(PcDesc, _scope_decode_offset, int) \ |
duke@435 | 594 | \ |
duke@435 | 595 | /***************************************************/ \ |
duke@435 | 596 | /* CodeBlobs (NOTE: incomplete, but only a little) */ \ |
duke@435 | 597 | /***************************************************/ \ |
duke@435 | 598 | \ |
duke@435 | 599 | nonstatic_field(CodeBlob, _name, const char*) \ |
duke@435 | 600 | nonstatic_field(CodeBlob, _size, int) \ |
duke@435 | 601 | nonstatic_field(CodeBlob, _header_size, int) \ |
duke@435 | 602 | nonstatic_field(CodeBlob, _relocation_size, int) \ |
duke@435 | 603 | nonstatic_field(CodeBlob, _instructions_offset, int) \ |
duke@435 | 604 | nonstatic_field(CodeBlob, _frame_complete_offset, int) \ |
duke@435 | 605 | nonstatic_field(CodeBlob, _data_offset, int) \ |
duke@435 | 606 | nonstatic_field(CodeBlob, _oops_offset, int) \ |
duke@435 | 607 | nonstatic_field(CodeBlob, _oops_length, int) \ |
duke@435 | 608 | nonstatic_field(CodeBlob, _frame_size, int) \ |
duke@435 | 609 | nonstatic_field(CodeBlob, _oop_maps, OopMapSet*) \ |
duke@435 | 610 | \ |
duke@435 | 611 | /**************************************************/ \ |
duke@435 | 612 | /* NMethods (NOTE: incomplete, but only a little) */ \ |
duke@435 | 613 | /**************************************************/ \ |
duke@435 | 614 | \ |
duke@435 | 615 | static_field(nmethod, _zombie_instruction_size, int) \ |
duke@435 | 616 | nonstatic_field(nmethod, _method, methodOop) \ |
duke@435 | 617 | nonstatic_field(nmethod, _entry_bci, int) \ |
duke@435 | 618 | nonstatic_field(nmethod, _link, nmethod*) \ |
duke@435 | 619 | nonstatic_field(nmethod, _exception_offset, int) \ |
duke@435 | 620 | nonstatic_field(nmethod, _deoptimize_offset, int) \ |
duke@435 | 621 | nonstatic_field(nmethod, _orig_pc_offset, int) \ |
duke@435 | 622 | nonstatic_field(nmethod, _stub_offset, int) \ |
duke@435 | 623 | nonstatic_field(nmethod, _scopes_data_offset, int) \ |
duke@435 | 624 | nonstatic_field(nmethod, _scopes_pcs_offset, int) \ |
duke@435 | 625 | nonstatic_field(nmethod, _dependencies_offset, int) \ |
duke@435 | 626 | nonstatic_field(nmethod, _handler_table_offset, int) \ |
duke@435 | 627 | nonstatic_field(nmethod, _nul_chk_table_offset, int) \ |
duke@435 | 628 | nonstatic_field(nmethod, _nmethod_end_offset, int) \ |
duke@435 | 629 | nonstatic_field(nmethod, _entry_point, address) \ |
duke@435 | 630 | nonstatic_field(nmethod, _verified_entry_point, address) \ |
duke@435 | 631 | nonstatic_field(nmethod, _osr_entry_point, address) \ |
duke@435 | 632 | nonstatic_field(nmethod, _lock_count, jint) \ |
duke@435 | 633 | nonstatic_field(nmethod, _stack_traversal_mark, long) \ |
duke@435 | 634 | \ |
duke@435 | 635 | /********************************/ \ |
duke@435 | 636 | /* JavaCalls (NOTE: incomplete) */ \ |
duke@435 | 637 | /********************************/ \ |
duke@435 | 638 | \ |
duke@435 | 639 | nonstatic_field(JavaCallWrapper, _anchor, JavaFrameAnchor) \ |
duke@435 | 640 | /********************************/ \ |
duke@435 | 641 | /* JavaFrameAnchor (NOTE: incomplete) */ \ |
duke@435 | 642 | /********************************/ \ |
duke@435 | 643 | volatile_nonstatic_field(JavaFrameAnchor, _last_Java_sp, intptr_t*) \ |
duke@435 | 644 | volatile_nonstatic_field(JavaFrameAnchor, _last_Java_pc, address) \ |
duke@435 | 645 | \ |
duke@435 | 646 | /******************************/ \ |
duke@435 | 647 | /* Threads (NOTE: incomplete) */ \ |
duke@435 | 648 | /******************************/ \ |
duke@435 | 649 | \ |
duke@435 | 650 | static_field(Threads, _thread_list, JavaThread*) \ |
duke@435 | 651 | static_field(Threads, _number_of_threads, int) \ |
duke@435 | 652 | static_field(Threads, _number_of_non_daemon_threads, int) \ |
duke@435 | 653 | static_field(Threads, _return_code, int) \ |
duke@435 | 654 | \ |
duke@435 | 655 | volatile_nonstatic_field(Thread, _suspend_flags, uint32_t) \ |
duke@435 | 656 | nonstatic_field(Thread, _active_handles, JNIHandleBlock*) \ |
duke@435 | 657 | nonstatic_field(Thread, _highest_lock, address) \ |
duke@435 | 658 | nonstatic_field(Thread, _tlab, ThreadLocalAllocBuffer) \ |
duke@435 | 659 | nonstatic_field(Thread, _current_pending_monitor, ObjectMonitor*) \ |
duke@435 | 660 | nonstatic_field(Thread, _current_pending_monitor_is_from_java, bool) \ |
duke@435 | 661 | nonstatic_field(Thread, _current_waiting_monitor, ObjectMonitor*) \ |
duke@435 | 662 | nonstatic_field(NamedThread, _name, char*) \ |
duke@435 | 663 | nonstatic_field(JavaThread, _next, JavaThread*) \ |
duke@435 | 664 | nonstatic_field(JavaThread, _threadObj, oop) \ |
duke@435 | 665 | nonstatic_field(JavaThread, _anchor, JavaFrameAnchor) \ |
duke@435 | 666 | volatile_nonstatic_field(JavaThread, _thread_state, JavaThreadState) \ |
duke@435 | 667 | nonstatic_field(JavaThread, _osthread, OSThread*) \ |
duke@435 | 668 | nonstatic_field(JavaThread, _stack_base, address) \ |
duke@435 | 669 | nonstatic_field(JavaThread, _stack_size, size_t) \ |
duke@435 | 670 | \ |
duke@435 | 671 | /************/ \ |
duke@435 | 672 | /* OSThread */ \ |
duke@435 | 673 | /************/ \ |
duke@435 | 674 | \ |
duke@435 | 675 | nonstatic_field(OSThread, _interrupted, jint) \ |
duke@435 | 676 | \ |
duke@435 | 677 | /************************/ \ |
duke@435 | 678 | /* OopMap and OopMapSet */ \ |
duke@435 | 679 | /************************/ \ |
duke@435 | 680 | \ |
duke@435 | 681 | nonstatic_field(OopMap, _pc_offset, int) \ |
duke@435 | 682 | nonstatic_field(OopMap, _omv_count, int) \ |
duke@435 | 683 | nonstatic_field(OopMap, _omv_data_size, int) \ |
duke@435 | 684 | nonstatic_field(OopMap, _omv_data, unsigned char*) \ |
duke@435 | 685 | nonstatic_field(OopMap, _write_stream, CompressedWriteStream*) \ |
duke@435 | 686 | nonstatic_field(OopMapSet, _om_count, int) \ |
duke@435 | 687 | nonstatic_field(OopMapSet, _om_size, int) \ |
duke@435 | 688 | nonstatic_field(OopMapSet, _om_data, OopMap**) \ |
duke@435 | 689 | \ |
duke@435 | 690 | /*********************************/ \ |
duke@435 | 691 | /* JNIHandles and JNIHandleBlock */ \ |
duke@435 | 692 | /*********************************/ \ |
duke@435 | 693 | static_field(JNIHandles, _global_handles, JNIHandleBlock*) \ |
duke@435 | 694 | static_field(JNIHandles, _weak_global_handles, JNIHandleBlock*) \ |
duke@435 | 695 | static_field(JNIHandles, _deleted_handle, oop) \ |
duke@435 | 696 | \ |
duke@435 | 697 | unchecked_nonstatic_field(JNIHandleBlock, _handles, JNIHandleBlock::block_size_in_oops * sizeof(Oop)) /* Note: no type */ \ |
duke@435 | 698 | nonstatic_field(JNIHandleBlock, _top, int) \ |
duke@435 | 699 | nonstatic_field(JNIHandleBlock, _next, JNIHandleBlock*) \ |
duke@435 | 700 | \ |
duke@435 | 701 | /********************/ \ |
duke@435 | 702 | /* CompressedStream */ \ |
duke@435 | 703 | /********************/ \ |
duke@435 | 704 | \ |
duke@435 | 705 | nonstatic_field(CompressedStream, _buffer, u_char*) \ |
duke@435 | 706 | nonstatic_field(CompressedStream, _position, int) \ |
duke@435 | 707 | \ |
duke@435 | 708 | /*********************************/ \ |
duke@435 | 709 | /* VMRegImpl (NOTE: incomplete) */ \ |
duke@435 | 710 | /*********************************/ \ |
duke@435 | 711 | \ |
duke@435 | 712 | static_field(VMRegImpl, regName[0], const char*) \ |
duke@435 | 713 | static_field(VMRegImpl, stack0, VMReg) \ |
duke@435 | 714 | \ |
duke@435 | 715 | /*******************************/ \ |
duke@435 | 716 | /* Runtime1 (NOTE: incomplete) */ \ |
duke@435 | 717 | /*******************************/ \ |
duke@435 | 718 | \ |
duke@435 | 719 | unchecked_c1_static_field(Runtime1, _blobs, sizeof(Runtime1::_blobs)) /* NOTE: no type */ \ |
duke@435 | 720 | \ |
duke@435 | 721 | /************/ \ |
duke@435 | 722 | /* Monitors */ \ |
duke@435 | 723 | /************/ \ |
duke@435 | 724 | \ |
duke@435 | 725 | volatile_nonstatic_field(ObjectMonitor, _header, markOop) \ |
duke@435 | 726 | unchecked_nonstatic_field(ObjectMonitor, _object, sizeof(void *)) /* NOTE: no type */ \ |
duke@435 | 727 | unchecked_nonstatic_field(ObjectMonitor, _owner, sizeof(void *)) /* NOTE: no type */ \ |
duke@435 | 728 | volatile_nonstatic_field(ObjectMonitor, _count, intptr_t) \ |
duke@435 | 729 | volatile_nonstatic_field(ObjectMonitor, _waiters, intptr_t) \ |
duke@435 | 730 | volatile_nonstatic_field(ObjectMonitor, _recursions, intptr_t) \ |
duke@435 | 731 | nonstatic_field(ObjectMonitor, FreeNext, ObjectMonitor*) \ |
duke@435 | 732 | volatile_nonstatic_field(BasicLock, _displaced_header, markOop) \ |
duke@435 | 733 | nonstatic_field(BasicObjectLock, _lock, BasicLock) \ |
duke@435 | 734 | nonstatic_field(BasicObjectLock, _obj, oop) \ |
duke@435 | 735 | static_field(ObjectSynchronizer, gBlockList, ObjectMonitor*) \ |
duke@435 | 736 | \ |
duke@435 | 737 | /*********************/ \ |
duke@435 | 738 | /* Matcher (C2 only) */ \ |
duke@435 | 739 | /*********************/ \ |
duke@435 | 740 | \ |
duke@435 | 741 | unchecked_c2_static_field(Matcher, _regEncode, sizeof(Matcher::_regEncode)) /* NOTE: no type */ \ |
duke@435 | 742 | \ |
duke@435 | 743 | /*********************/ \ |
duke@435 | 744 | /* -XX flags */ \ |
duke@435 | 745 | /*********************/ \ |
duke@435 | 746 | \ |
duke@435 | 747 | nonstatic_field(Flag, type, const char*) \ |
duke@435 | 748 | nonstatic_field(Flag, name, const char*) \ |
duke@435 | 749 | unchecked_nonstatic_field(Flag, addr, sizeof(void*)) /* NOTE: no type */ \ |
duke@435 | 750 | nonstatic_field(Flag, kind, const char*) \ |
duke@435 | 751 | static_field(Flag, flags, Flag*) \ |
duke@435 | 752 | static_field(Flag, numFlags, size_t) \ |
duke@435 | 753 | \ |
duke@435 | 754 | /*************************/ \ |
duke@435 | 755 | /* JDK / VM version info */ \ |
duke@435 | 756 | /*************************/ \ |
duke@435 | 757 | \ |
duke@435 | 758 | static_field(Abstract_VM_Version, _s_vm_release, const char*) \ |
duke@435 | 759 | static_field(Abstract_VM_Version, _s_internal_vm_info_string, const char*) \ |
duke@435 | 760 | static_field(Abstract_VM_Version, _vm_major_version, int) \ |
duke@435 | 761 | static_field(Abstract_VM_Version, _vm_minor_version, int) \ |
duke@435 | 762 | static_field(Abstract_VM_Version, _vm_build_number, int) \ |
duke@435 | 763 | \ |
kamg@677 | 764 | static_field(JDK_Version, _current, JDK_Version) \ |
kamg@677 | 765 | nonstatic_field(JDK_Version, _partially_initialized, bool) \ |
kamg@677 | 766 | nonstatic_field(JDK_Version, _major, unsigned char) \ |
duke@435 | 767 | \ |
duke@435 | 768 | \ |
duke@435 | 769 | \ |
duke@435 | 770 | /*************/ \ |
duke@435 | 771 | /* Arguments */ \ |
duke@435 | 772 | /*************/ \ |
duke@435 | 773 | \ |
duke@435 | 774 | static_field(Arguments, _jvm_flags_array, char**) \ |
duke@435 | 775 | static_field(Arguments, _num_jvm_flags, int) \ |
duke@435 | 776 | static_field(Arguments, _jvm_args_array, char**) \ |
duke@435 | 777 | static_field(Arguments, _num_jvm_args, int) \ |
duke@435 | 778 | static_field(Arguments, _java_command, char*) \ |
duke@435 | 779 | \ |
duke@435 | 780 | \ |
duke@435 | 781 | /************************/ \ |
duke@435 | 782 | /* Miscellaneous fields */ \ |
duke@435 | 783 | /************************/ \ |
duke@435 | 784 | \ |
duke@435 | 785 | nonstatic_field(AccessFlags, _flags, jint) \ |
duke@435 | 786 | nonstatic_field(elapsedTimer, _counter, jlong) \ |
duke@435 | 787 | nonstatic_field(elapsedTimer, _active, bool) \ |
duke@435 | 788 | nonstatic_field(InvocationCounter, _counter, unsigned int) |
duke@435 | 789 | |
duke@435 | 790 | /* NOTE that we do not use the last_entry() macro here; it is used */ |
duke@435 | 791 | /* in vmStructs_<os>_<cpu>.hpp's VM_STRUCTS_OS_CPU macro (and must */ |
duke@435 | 792 | /* be present there) */ |
duke@435 | 793 | |
duke@435 | 794 | //-------------------------------------------------------------------------------- |
duke@435 | 795 | // VM_TYPES |
duke@435 | 796 | // |
duke@435 | 797 | // This list must enumerate at least all of the types in the above |
duke@435 | 798 | // list. For the types in the above list, the entry below must have |
duke@435 | 799 | // exactly the same spacing since string comparisons are done in the |
duke@435 | 800 | // code which verifies the consistency of these tables (in the debug |
duke@435 | 801 | // build). |
duke@435 | 802 | // |
duke@435 | 803 | // In addition to the above types, this list is required to enumerate |
duke@435 | 804 | // the JNI's java types, which are used to indicate the size of Java |
duke@435 | 805 | // fields in this VM to the SA. Further, oop types are currently |
duke@435 | 806 | // distinguished by name (i.e., ends with "oop") over in the SA. |
duke@435 | 807 | // |
duke@435 | 808 | // The declare_toplevel_type macro should be used to declare types |
duke@435 | 809 | // which do not have a superclass. |
duke@435 | 810 | // |
duke@435 | 811 | // The declare_integer_type and declare_unsigned_integer_type macros |
duke@435 | 812 | // are required in order to properly identify C integer types over in |
duke@435 | 813 | // the SA. They should be used for any type which is otherwise opaque |
duke@435 | 814 | // and which it is necessary to coerce into an integer value. This |
duke@435 | 815 | // includes, for example, the type uintptr_t. Note that while they |
duke@435 | 816 | // will properly identify the type's size regardless of the platform, |
duke@435 | 817 | // since it is does not seem possible to deduce or check signedness at |
duke@435 | 818 | // compile time using the pointer comparison tricks, it is currently |
duke@435 | 819 | // required that the given types have the same signedness across all |
duke@435 | 820 | // platforms. |
duke@435 | 821 | // |
duke@435 | 822 | // NOTE that there are platform-specific additions to this table in |
duke@435 | 823 | // vmStructs_<os>_<cpu>.hpp. |
duke@435 | 824 | |
duke@435 | 825 | #define VM_TYPES(declare_type, \ |
duke@435 | 826 | declare_toplevel_type, \ |
duke@435 | 827 | declare_oop_type, \ |
duke@435 | 828 | declare_integer_type, \ |
duke@435 | 829 | declare_unsigned_integer_type, \ |
duke@435 | 830 | declare_c1_toplevel_type, \ |
duke@435 | 831 | declare_c2_type, \ |
duke@435 | 832 | declare_c2_toplevel_type, \ |
duke@435 | 833 | last_entry) \ |
duke@435 | 834 | \ |
duke@435 | 835 | /*************************************************************/ \ |
duke@435 | 836 | /* Java primitive types -- required by the SA implementation */ \ |
duke@435 | 837 | /* in order to determine the size of Java fields in this VM */ \ |
duke@435 | 838 | /* (the implementation looks up these names specifically) */ \ |
duke@435 | 839 | /* NOTE: since we fetch these sizes from the remote VM, we */ \ |
duke@435 | 840 | /* have a bootstrapping sequence during which it is not */ \ |
duke@435 | 841 | /* valid to fetch Java values from the remote process, only */ \ |
duke@435 | 842 | /* C integer values (of known size). NOTE also that we do */ \ |
duke@435 | 843 | /* NOT include "Java unsigned" types like juint here; since */ \ |
duke@435 | 844 | /* Java does not have unsigned primitive types, those can */ \ |
duke@435 | 845 | /* not be mapped directly and are considered to be C integer */ \ |
duke@435 | 846 | /* types in this system (see the "other types" section, */ \ |
duke@435 | 847 | /* below.) */ \ |
duke@435 | 848 | /*************************************************************/ \ |
duke@435 | 849 | \ |
duke@435 | 850 | declare_toplevel_type(jboolean) \ |
duke@435 | 851 | declare_toplevel_type(jbyte) \ |
duke@435 | 852 | declare_toplevel_type(jchar) \ |
duke@435 | 853 | declare_toplevel_type(jdouble) \ |
duke@435 | 854 | declare_toplevel_type(jfloat) \ |
duke@435 | 855 | declare_toplevel_type(jint) \ |
duke@435 | 856 | declare_toplevel_type(jlong) \ |
duke@435 | 857 | declare_toplevel_type(jshort) \ |
duke@435 | 858 | \ |
duke@435 | 859 | /*********************************************************************/ \ |
duke@435 | 860 | /* C integer types. User-defined typedefs (like "size_t" or */ \ |
duke@435 | 861 | /* "intptr_t") are guaranteed to be present with the same names over */ \ |
duke@435 | 862 | /* in the SA's type database. Names like "unsigned short" are not */ \ |
duke@435 | 863 | /* guaranteed to be visible through the SA's type database lookup */ \ |
duke@435 | 864 | /* mechanism, though they will have a Type object created for them */ \ |
duke@435 | 865 | /* and are valid types for Fields. */ \ |
duke@435 | 866 | /*********************************************************************/ \ |
duke@435 | 867 | declare_integer_type(bool) \ |
duke@435 | 868 | declare_integer_type(int) \ |
duke@435 | 869 | declare_integer_type(long) \ |
duke@435 | 870 | declare_integer_type(char) \ |
duke@435 | 871 | declare_unsigned_integer_type(unsigned char) \ |
duke@435 | 872 | declare_unsigned_integer_type(unsigned int) \ |
duke@435 | 873 | declare_unsigned_integer_type(unsigned short) \ |
duke@435 | 874 | declare_unsigned_integer_type(unsigned long) \ |
duke@435 | 875 | /* The compiler thinks this is a different type than */ \ |
duke@435 | 876 | /* unsigned short on Win32 */ \ |
duke@435 | 877 | declare_unsigned_integer_type(u2) \ |
duke@435 | 878 | declare_unsigned_integer_type(unsigned) \ |
duke@435 | 879 | \ |
duke@435 | 880 | /*****************************/ \ |
duke@435 | 881 | /* C primitive pointer types */ \ |
duke@435 | 882 | /*****************************/ \ |
duke@435 | 883 | \ |
duke@435 | 884 | declare_toplevel_type(int*) \ |
duke@435 | 885 | declare_toplevel_type(char*) \ |
duke@435 | 886 | declare_toplevel_type(char**) \ |
duke@435 | 887 | declare_toplevel_type(const char*) \ |
duke@435 | 888 | declare_toplevel_type(u_char*) \ |
duke@435 | 889 | declare_toplevel_type(unsigned char*) \ |
duke@435 | 890 | \ |
duke@435 | 891 | /*******************************************************************/ \ |
duke@435 | 892 | /* Types which it will be handy to have available over in the SA */ \ |
duke@435 | 893 | /* in order to do platform-independent address -> integer coercion */ \ |
duke@435 | 894 | /* (note: these will be looked up by name) */ \ |
duke@435 | 895 | /*******************************************************************/ \ |
duke@435 | 896 | \ |
duke@435 | 897 | declare_unsigned_integer_type(size_t) \ |
dcubed@587 | 898 | declare_integer_type(ssize_t) \ |
duke@435 | 899 | declare_unsigned_integer_type(const size_t) \ |
duke@435 | 900 | declare_integer_type(intx) \ |
duke@435 | 901 | declare_integer_type(intptr_t) \ |
duke@435 | 902 | declare_unsigned_integer_type(uintx) \ |
duke@435 | 903 | declare_unsigned_integer_type(uintptr_t) \ |
duke@435 | 904 | declare_unsigned_integer_type(uint32_t) \ |
duke@435 | 905 | declare_unsigned_integer_type(uint64_t) \ |
duke@435 | 906 | declare_integer_type(const int) \ |
duke@435 | 907 | \ |
duke@435 | 908 | /*******************************************************************************/ \ |
duke@435 | 909 | /* OopDesc and Klass hierarchies (NOTE: missing methodDataOop-related classes) */ \ |
duke@435 | 910 | /*******************************************************************************/ \ |
duke@435 | 911 | \ |
duke@435 | 912 | declare_toplevel_type(oopDesc) \ |
duke@435 | 913 | declare_toplevel_type(Klass_vtbl) \ |
duke@435 | 914 | declare_type(Klass, Klass_vtbl) \ |
duke@435 | 915 | declare_type(arrayKlass, Klass) \ |
duke@435 | 916 | declare_type(arrayKlassKlass, klassKlass) \ |
duke@435 | 917 | declare_type(arrayOopDesc, oopDesc) \ |
coleenp@548 | 918 | declare_type(compiledICHolderKlass, Klass) \ |
coleenp@548 | 919 | declare_type(compiledICHolderOopDesc, oopDesc) \ |
coleenp@548 | 920 | declare_type(constantPoolKlass, Klass) \ |
coleenp@548 | 921 | declare_type(constantPoolOopDesc, oopDesc) \ |
coleenp@548 | 922 | declare_type(constantPoolCacheKlass, Klass) \ |
coleenp@548 | 923 | declare_type(constantPoolCacheOopDesc, oopDesc) \ |
duke@435 | 924 | declare_type(instanceKlass, Klass) \ |
duke@435 | 925 | declare_type(instanceKlassKlass, klassKlass) \ |
duke@435 | 926 | declare_type(instanceOopDesc, oopDesc) \ |
duke@435 | 927 | declare_type(instanceRefKlass, instanceKlass) \ |
duke@435 | 928 | declare_type(klassKlass, Klass) \ |
duke@435 | 929 | declare_type(klassOopDesc, oopDesc) \ |
duke@435 | 930 | declare_type(markOopDesc, oopDesc) \ |
duke@435 | 931 | declare_type(methodDataKlass, Klass) \ |
duke@435 | 932 | declare_type(methodDataOopDesc, oopDesc) \ |
duke@435 | 933 | declare_type(methodKlass, Klass) \ |
duke@435 | 934 | declare_type(constMethodKlass, Klass) \ |
duke@435 | 935 | declare_type(methodOopDesc, oopDesc) \ |
duke@435 | 936 | declare_type(objArrayKlass, arrayKlass) \ |
duke@435 | 937 | declare_type(objArrayKlassKlass, arrayKlassKlass) \ |
duke@435 | 938 | declare_type(objArrayOopDesc, arrayOopDesc) \ |
duke@435 | 939 | declare_type(constMethodOopDesc, oopDesc) \ |
duke@435 | 940 | declare_type(symbolKlass, Klass) \ |
duke@435 | 941 | declare_type(symbolOopDesc, oopDesc) \ |
duke@435 | 942 | declare_type(typeArrayKlass, arrayKlass) \ |
duke@435 | 943 | declare_type(typeArrayKlassKlass, arrayKlassKlass) \ |
duke@435 | 944 | declare_type(typeArrayOopDesc, arrayOopDesc) \ |
duke@435 | 945 | \ |
duke@435 | 946 | /********/ \ |
duke@435 | 947 | /* Oops */ \ |
duke@435 | 948 | /********/ \ |
duke@435 | 949 | \ |
duke@435 | 950 | declare_oop_type(constantPoolOop) \ |
duke@435 | 951 | declare_oop_type(constantPoolCacheOop) \ |
duke@435 | 952 | declare_oop_type(klassOop) \ |
duke@435 | 953 | declare_oop_type(markOop) \ |
duke@435 | 954 | declare_oop_type(methodOop) \ |
coleenp@548 | 955 | declare_oop_type(methodDataOop) \ |
duke@435 | 956 | declare_oop_type(objArrayOop) \ |
duke@435 | 957 | declare_oop_type(oop) \ |
coleenp@548 | 958 | declare_oop_type(narrowOop) \ |
coleenp@548 | 959 | declare_oop_type(wideKlassOop) \ |
duke@435 | 960 | declare_oop_type(constMethodOop) \ |
duke@435 | 961 | declare_oop_type(symbolOop) \ |
duke@435 | 962 | declare_oop_type(typeArrayOop) \ |
duke@435 | 963 | \ |
duke@435 | 964 | /*************************************/ \ |
duke@435 | 965 | /* MethodOop-related data structures */ \ |
duke@435 | 966 | /*************************************/ \ |
duke@435 | 967 | \ |
duke@435 | 968 | declare_toplevel_type(CheckedExceptionElement) \ |
duke@435 | 969 | declare_toplevel_type(LocalVariableTableElement) \ |
duke@435 | 970 | \ |
duke@435 | 971 | /******************************************/ \ |
duke@435 | 972 | /* Generation and space hierarchies */ \ |
duke@435 | 973 | /* (needed for run-time type information) */ \ |
duke@435 | 974 | /******************************************/ \ |
duke@435 | 975 | \ |
duke@435 | 976 | declare_toplevel_type(CollectedHeap) \ |
duke@435 | 977 | declare_type(SharedHeap, CollectedHeap) \ |
duke@435 | 978 | declare_type(GenCollectedHeap, SharedHeap) \ |
duke@435 | 979 | declare_toplevel_type(Generation) \ |
duke@435 | 980 | declare_type(DefNewGeneration, Generation) \ |
duke@435 | 981 | declare_type(CardGeneration, Generation) \ |
duke@435 | 982 | declare_type(OneContigSpaceCardGeneration, CardGeneration) \ |
duke@435 | 983 | declare_type(TenuredGeneration, OneContigSpaceCardGeneration) \ |
duke@435 | 984 | declare_type(CompactingPermGenGen, OneContigSpaceCardGeneration) \ |
duke@435 | 985 | declare_toplevel_type(Space) \ |
duke@435 | 986 | declare_toplevel_type(BitMap) \ |
duke@435 | 987 | declare_type(CompactibleSpace, Space) \ |
duke@435 | 988 | declare_type(ContiguousSpace, CompactibleSpace) \ |
duke@435 | 989 | declare_type(EdenSpace, ContiguousSpace) \ |
duke@435 | 990 | declare_type(OffsetTableContigSpace, ContiguousSpace) \ |
duke@435 | 991 | declare_type(TenuredSpace, OffsetTableContigSpace) \ |
duke@435 | 992 | declare_type(ContigPermSpace, OffsetTableContigSpace) \ |
duke@435 | 993 | declare_toplevel_type(PermGen) \ |
duke@435 | 994 | declare_type(CompactingPermGen, PermGen) \ |
duke@435 | 995 | declare_toplevel_type(BarrierSet) \ |
duke@435 | 996 | declare_type(ModRefBarrierSet, BarrierSet) \ |
duke@435 | 997 | declare_type(CardTableModRefBS, ModRefBarrierSet) \ |
ysr@777 | 998 | declare_type(CardTableModRefBSForCTRS, CardTableModRefBS) \ |
duke@435 | 999 | declare_toplevel_type(GenRemSet) \ |
duke@435 | 1000 | declare_type(CardTableRS, GenRemSet) \ |
duke@435 | 1001 | declare_toplevel_type(BlockOffsetSharedArray) \ |
duke@435 | 1002 | declare_toplevel_type(BlockOffsetTable) \ |
duke@435 | 1003 | declare_type(BlockOffsetArray, BlockOffsetTable) \ |
duke@435 | 1004 | declare_type(BlockOffsetArrayContigSpace, BlockOffsetArray) \ |
duke@435 | 1005 | declare_type(BlockOffsetArrayNonContigSpace, BlockOffsetArray) \ |
duke@435 | 1006 | \ |
duke@435 | 1007 | /* Miscellaneous other GC types */ \ |
duke@435 | 1008 | \ |
duke@435 | 1009 | declare_toplevel_type(ageTable) \ |
duke@435 | 1010 | declare_toplevel_type(Generation::StatRecord) \ |
duke@435 | 1011 | declare_toplevel_type(GenerationSpec) \ |
duke@435 | 1012 | declare_toplevel_type(HeapWord) \ |
duke@435 | 1013 | declare_toplevel_type(MemRegion) \ |
duke@435 | 1014 | declare_toplevel_type(const MemRegion) \ |
duke@435 | 1015 | declare_toplevel_type(PermanentGenerationSpec) \ |
duke@435 | 1016 | declare_toplevel_type(ThreadLocalAllocBuffer) \ |
duke@435 | 1017 | declare_toplevel_type(VirtualSpace) \ |
duke@435 | 1018 | declare_toplevel_type(WaterMark) \ |
duke@435 | 1019 | \ |
duke@435 | 1020 | /* Pointers to Garbage Collection types */ \ |
duke@435 | 1021 | \ |
duke@435 | 1022 | declare_toplevel_type(BarrierSet*) \ |
duke@435 | 1023 | declare_toplevel_type(BlockOffsetSharedArray*) \ |
duke@435 | 1024 | declare_toplevel_type(GenRemSet*) \ |
duke@435 | 1025 | declare_toplevel_type(CardTableRS*) \ |
ysr@777 | 1026 | declare_toplevel_type(CardTableModRefBS*) \ |
ysr@777 | 1027 | declare_toplevel_type(CardTableModRefBS**) \ |
ysr@777 | 1028 | declare_toplevel_type(CardTableModRefBSForCTRS*) \ |
ysr@777 | 1029 | declare_toplevel_type(CardTableModRefBSForCTRS**) \ |
duke@435 | 1030 | declare_toplevel_type(CollectedHeap*) \ |
duke@435 | 1031 | declare_toplevel_type(ContiguousSpace*) \ |
duke@435 | 1032 | declare_toplevel_type(DefNewGeneration*) \ |
duke@435 | 1033 | declare_toplevel_type(EdenSpace*) \ |
duke@435 | 1034 | declare_toplevel_type(GenCollectedHeap*) \ |
duke@435 | 1035 | declare_toplevel_type(Generation*) \ |
duke@435 | 1036 | declare_toplevel_type(GenerationSpec**) \ |
duke@435 | 1037 | declare_toplevel_type(HeapWord*) \ |
duke@435 | 1038 | declare_toplevel_type(MemRegion*) \ |
duke@435 | 1039 | declare_toplevel_type(OffsetTableContigSpace*) \ |
duke@435 | 1040 | declare_toplevel_type(OneContigSpaceCardGeneration*) \ |
duke@435 | 1041 | declare_toplevel_type(PermGen*) \ |
duke@435 | 1042 | declare_toplevel_type(Space*) \ |
duke@435 | 1043 | declare_toplevel_type(ThreadLocalAllocBuffer*) \ |
duke@435 | 1044 | \ |
duke@435 | 1045 | /************************/ \ |
duke@435 | 1046 | /* PerfMemory - jvmstat */ \ |
duke@435 | 1047 | /************************/ \ |
duke@435 | 1048 | \ |
duke@435 | 1049 | declare_toplevel_type(PerfDataPrologue) \ |
duke@435 | 1050 | declare_toplevel_type(PerfDataPrologue*) \ |
duke@435 | 1051 | declare_toplevel_type(PerfDataEntry) \ |
duke@435 | 1052 | declare_toplevel_type(PerfMemory) \ |
duke@435 | 1053 | \ |
duke@435 | 1054 | /*********************************/ \ |
duke@435 | 1055 | /* SymbolTable, SystemDictionary */ \ |
duke@435 | 1056 | /*********************************/ \ |
duke@435 | 1057 | \ |
duke@435 | 1058 | declare_toplevel_type(BasicHashtable) \ |
duke@435 | 1059 | declare_type(Hashtable, BasicHashtable) \ |
duke@435 | 1060 | declare_type(SymbolTable, Hashtable) \ |
duke@435 | 1061 | declare_type(StringTable, Hashtable) \ |
duke@435 | 1062 | declare_type(LoaderConstraintTable, Hashtable) \ |
duke@435 | 1063 | declare_type(TwoOopHashtable, Hashtable) \ |
duke@435 | 1064 | declare_type(Dictionary, TwoOopHashtable) \ |
duke@435 | 1065 | declare_type(PlaceholderTable, TwoOopHashtable) \ |
duke@435 | 1066 | declare_toplevel_type(Hashtable*) \ |
duke@435 | 1067 | declare_toplevel_type(SymbolTable*) \ |
duke@435 | 1068 | declare_toplevel_type(StringTable*) \ |
duke@435 | 1069 | declare_toplevel_type(LoaderConstraintTable*) \ |
duke@435 | 1070 | declare_toplevel_type(TwoOopHashtable*) \ |
duke@435 | 1071 | declare_toplevel_type(Dictionary*) \ |
duke@435 | 1072 | declare_toplevel_type(PlaceholderTable*) \ |
duke@435 | 1073 | declare_toplevel_type(BasicHashtableEntry) \ |
duke@435 | 1074 | declare_toplevel_type(BasicHashtableEntry*) \ |
duke@435 | 1075 | declare_type(HashtableEntry, BasicHashtableEntry) \ |
duke@435 | 1076 | declare_type(DictionaryEntry, HashtableEntry) \ |
duke@435 | 1077 | declare_type(PlaceholderEntry, HashtableEntry) \ |
duke@435 | 1078 | declare_type(LoaderConstraintEntry, HashtableEntry) \ |
duke@435 | 1079 | declare_toplevel_type(HashtableEntry*) \ |
duke@435 | 1080 | declare_toplevel_type(DictionaryEntry*) \ |
duke@435 | 1081 | declare_toplevel_type(HashtableBucket) \ |
duke@435 | 1082 | declare_toplevel_type(HashtableBucket*) \ |
duke@435 | 1083 | declare_toplevel_type(SystemDictionary) \ |
duke@435 | 1084 | declare_toplevel_type(ProtectionDomainEntry) \ |
duke@435 | 1085 | declare_toplevel_type(ProtectionDomainEntry*) \ |
duke@435 | 1086 | \ |
duke@435 | 1087 | /***********************************************************/ \ |
duke@435 | 1088 | /* Thread hierarchy (needed for run-time type information) */ \ |
duke@435 | 1089 | /***********************************************************/ \ |
duke@435 | 1090 | \ |
duke@435 | 1091 | declare_toplevel_type(Threads) \ |
duke@435 | 1092 | declare_toplevel_type(ThreadShadow) \ |
duke@435 | 1093 | declare_type(Thread, ThreadShadow) \ |
duke@435 | 1094 | declare_type(NamedThread, Thread) \ |
duke@435 | 1095 | declare_type(WatcherThread, Thread) \ |
duke@435 | 1096 | declare_type(JavaThread, Thread) \ |
duke@435 | 1097 | declare_type(JvmtiAgentThread, JavaThread) \ |
duke@435 | 1098 | declare_type(LowMemoryDetectorThread, JavaThread) \ |
duke@435 | 1099 | declare_type(CompilerThread, JavaThread) \ |
duke@435 | 1100 | declare_toplevel_type(OSThread) \ |
duke@435 | 1101 | declare_toplevel_type(JavaFrameAnchor) \ |
duke@435 | 1102 | \ |
duke@435 | 1103 | /***************/ \ |
duke@435 | 1104 | /* Interpreter */ \ |
duke@435 | 1105 | /***************/ \ |
duke@435 | 1106 | \ |
duke@435 | 1107 | declare_toplevel_type(AbstractInterpreter) \ |
duke@435 | 1108 | \ |
duke@435 | 1109 | /*********/ \ |
duke@435 | 1110 | /* Stubs */ \ |
duke@435 | 1111 | /*********/ \ |
duke@435 | 1112 | \ |
duke@435 | 1113 | declare_toplevel_type(StubQueue) \ |
duke@435 | 1114 | declare_toplevel_type(StubRoutines) \ |
never@739 | 1115 | IA32_ONLY(declare_toplevel_type(StubRoutines::x86)) \ |
duke@435 | 1116 | declare_toplevel_type(Stub) \ |
duke@435 | 1117 | declare_type(InterpreterCodelet, Stub) \ |
duke@435 | 1118 | \ |
duke@435 | 1119 | /*************/ \ |
duke@435 | 1120 | /* JavaCalls */ \ |
duke@435 | 1121 | /*************/ \ |
duke@435 | 1122 | \ |
duke@435 | 1123 | declare_toplevel_type(JavaCallWrapper) \ |
duke@435 | 1124 | \ |
duke@435 | 1125 | /*************/ \ |
duke@435 | 1126 | /* CodeCache */ \ |
duke@435 | 1127 | /*************/ \ |
duke@435 | 1128 | \ |
duke@435 | 1129 | declare_toplevel_type(CodeCache) \ |
duke@435 | 1130 | \ |
duke@435 | 1131 | /************/ \ |
duke@435 | 1132 | /* CodeHeap */ \ |
duke@435 | 1133 | /************/ \ |
duke@435 | 1134 | \ |
duke@435 | 1135 | declare_toplevel_type(CodeHeap) \ |
duke@435 | 1136 | declare_toplevel_type(CodeHeap*) \ |
duke@435 | 1137 | declare_toplevel_type(HeapBlock) \ |
duke@435 | 1138 | declare_toplevel_type(HeapBlock::Header) \ |
duke@435 | 1139 | declare_type(FreeBlock, HeapBlock) \ |
duke@435 | 1140 | \ |
duke@435 | 1141 | /*************************************************************/ \ |
duke@435 | 1142 | /* CodeBlob hierarchy (needed for run-time type information) */ \ |
duke@435 | 1143 | /*************************************************************/ \ |
duke@435 | 1144 | \ |
duke@435 | 1145 | declare_toplevel_type(CodeBlob) \ |
duke@435 | 1146 | declare_type(BufferBlob, CodeBlob) \ |
duke@435 | 1147 | declare_type(nmethod, CodeBlob) \ |
duke@435 | 1148 | declare_type(RuntimeStub, CodeBlob) \ |
duke@435 | 1149 | declare_type(SingletonBlob, CodeBlob) \ |
duke@435 | 1150 | declare_type(SafepointBlob, SingletonBlob) \ |
duke@435 | 1151 | declare_type(DeoptimizationBlob, SingletonBlob) \ |
duke@435 | 1152 | declare_c2_type(ExceptionBlob, SingletonBlob) \ |
duke@435 | 1153 | declare_c2_type(UncommonTrapBlob, CodeBlob) \ |
duke@435 | 1154 | \ |
duke@435 | 1155 | /***************************************/ \ |
duke@435 | 1156 | /* PcDesc and other compiled code info */ \ |
duke@435 | 1157 | /***************************************/ \ |
duke@435 | 1158 | \ |
duke@435 | 1159 | declare_toplevel_type(PcDesc) \ |
duke@435 | 1160 | \ |
duke@435 | 1161 | /************************/ \ |
duke@435 | 1162 | /* OopMap and OopMapSet */ \ |
duke@435 | 1163 | /************************/ \ |
duke@435 | 1164 | \ |
duke@435 | 1165 | declare_toplevel_type(OopMap) \ |
duke@435 | 1166 | declare_toplevel_type(OopMapSet) \ |
duke@435 | 1167 | \ |
duke@435 | 1168 | /********************/ \ |
duke@435 | 1169 | /* CompressedStream */ \ |
duke@435 | 1170 | /********************/ \ |
duke@435 | 1171 | \ |
duke@435 | 1172 | declare_toplevel_type(CompressedStream) \ |
duke@435 | 1173 | \ |
duke@435 | 1174 | /**************/ \ |
duke@435 | 1175 | /* VMRegImpl */ \ |
duke@435 | 1176 | /**************/ \ |
duke@435 | 1177 | \ |
duke@435 | 1178 | declare_toplevel_type(VMRegImpl) \ |
duke@435 | 1179 | \ |
duke@435 | 1180 | /*********************************/ \ |
duke@435 | 1181 | /* JNIHandles and JNIHandleBlock */ \ |
duke@435 | 1182 | /*********************************/ \ |
duke@435 | 1183 | \ |
duke@435 | 1184 | declare_toplevel_type(JNIHandles) \ |
duke@435 | 1185 | declare_toplevel_type(JNIHandleBlock) \ |
duke@435 | 1186 | \ |
duke@435 | 1187 | /**********************/ \ |
duke@435 | 1188 | /* Runtime1 (C1 only) */ \ |
duke@435 | 1189 | /**********************/ \ |
duke@435 | 1190 | \ |
duke@435 | 1191 | declare_c1_toplevel_type(Runtime1) \ |
duke@435 | 1192 | \ |
duke@435 | 1193 | /************/ \ |
duke@435 | 1194 | /* Monitors */ \ |
duke@435 | 1195 | /************/ \ |
duke@435 | 1196 | \ |
duke@435 | 1197 | declare_toplevel_type(ObjectMonitor) \ |
duke@435 | 1198 | declare_toplevel_type(ObjectSynchronizer) \ |
duke@435 | 1199 | declare_toplevel_type(BasicLock) \ |
duke@435 | 1200 | declare_toplevel_type(BasicObjectLock) \ |
duke@435 | 1201 | \ |
duke@435 | 1202 | /*********************/ \ |
duke@435 | 1203 | /* Matcher (C2 only) */ \ |
duke@435 | 1204 | /*********************/ \ |
duke@435 | 1205 | \ |
duke@435 | 1206 | /* NOTE: this is not really a toplevel type, but we only need */ \ |
duke@435 | 1207 | /* this one -- FIXME later if necessary */ \ |
duke@435 | 1208 | declare_c2_toplevel_type(Matcher) \ |
duke@435 | 1209 | \ |
duke@435 | 1210 | /*********************/ \ |
duke@435 | 1211 | /* Adapter Blob Entries */ \ |
duke@435 | 1212 | /*********************/ \ |
duke@435 | 1213 | declare_toplevel_type(AdapterHandlerEntry) \ |
duke@435 | 1214 | declare_toplevel_type(AdapterHandlerEntry*) \ |
duke@435 | 1215 | \ |
duke@435 | 1216 | /********************/ \ |
duke@435 | 1217 | /* -XX flags */ \ |
duke@435 | 1218 | /********************/ \ |
duke@435 | 1219 | \ |
duke@435 | 1220 | declare_toplevel_type(Flag) \ |
duke@435 | 1221 | declare_toplevel_type(Flag*) \ |
duke@435 | 1222 | \ |
duke@435 | 1223 | /********************/ \ |
duke@435 | 1224 | /* JDK/VM version */ \ |
duke@435 | 1225 | /********************/ \ |
duke@435 | 1226 | \ |
duke@435 | 1227 | declare_toplevel_type(Abstract_VM_Version) \ |
duke@435 | 1228 | declare_toplevel_type(JDK_Version) \ |
duke@435 | 1229 | \ |
duke@435 | 1230 | /*************/ \ |
duke@435 | 1231 | /* Arguments */ \ |
duke@435 | 1232 | /*************/ \ |
duke@435 | 1233 | \ |
duke@435 | 1234 | declare_toplevel_type(Arguments) \ |
duke@435 | 1235 | \ |
duke@435 | 1236 | /***************/ \ |
duke@435 | 1237 | /* Other types */ \ |
duke@435 | 1238 | /***************/ \ |
duke@435 | 1239 | \ |
duke@435 | 1240 | /* all enum types */ \ |
duke@435 | 1241 | \ |
duke@435 | 1242 | declare_integer_type(Bytecodes::Code) \ |
duke@435 | 1243 | declare_integer_type(Generation::Name) \ |
duke@435 | 1244 | declare_integer_type(instanceKlass::ClassState) \ |
duke@435 | 1245 | declare_integer_type(JavaThreadState) \ |
duke@435 | 1246 | declare_integer_type(Location::Type) \ |
duke@435 | 1247 | declare_integer_type(Location::Where) \ |
duke@435 | 1248 | declare_integer_type(PermGen::Name) \ |
duke@435 | 1249 | \ |
duke@435 | 1250 | declare_integer_type(AccessFlags) /* FIXME: wrong type (not integer) */\ |
duke@435 | 1251 | declare_toplevel_type(address) /* FIXME: should this be an integer type? */\ |
duke@435 | 1252 | declare_toplevel_type(BreakpointInfo) \ |
duke@435 | 1253 | declare_toplevel_type(BreakpointInfo*) \ |
duke@435 | 1254 | declare_toplevel_type(CodeBlob*) \ |
duke@435 | 1255 | declare_toplevel_type(CompressedWriteStream*) \ |
duke@435 | 1256 | declare_toplevel_type(ConstantPoolCacheEntry) \ |
duke@435 | 1257 | declare_toplevel_type(elapsedTimer) \ |
duke@435 | 1258 | declare_toplevel_type(intptr_t*) \ |
duke@435 | 1259 | declare_unsigned_integer_type(InvocationCounter) /* FIXME: wrong type (not integer) */ \ |
duke@435 | 1260 | declare_toplevel_type(JavaThread*) \ |
duke@435 | 1261 | declare_toplevel_type(jbyte*) \ |
duke@435 | 1262 | declare_toplevel_type(jbyte**) \ |
duke@435 | 1263 | declare_toplevel_type(jint*) \ |
duke@435 | 1264 | declare_toplevel_type(jniIdMapBase*) \ |
duke@435 | 1265 | declare_unsigned_integer_type(juint) \ |
duke@435 | 1266 | declare_unsigned_integer_type(julong) \ |
duke@435 | 1267 | declare_toplevel_type(JNIHandleBlock*) \ |
duke@435 | 1268 | declare_toplevel_type(JNIid) \ |
duke@435 | 1269 | declare_toplevel_type(JNIid*) \ |
duke@435 | 1270 | declare_toplevel_type(jmethodID*) \ |
duke@435 | 1271 | declare_toplevel_type(Mutex*) \ |
duke@435 | 1272 | declare_toplevel_type(nmethod*) \ |
duke@435 | 1273 | declare_toplevel_type(ObjectMonitor*) \ |
duke@435 | 1274 | declare_toplevel_type(oop*) \ |
duke@435 | 1275 | declare_toplevel_type(OopMap**) \ |
duke@435 | 1276 | declare_toplevel_type(OopMapCache*) \ |
duke@435 | 1277 | declare_toplevel_type(OopMapSet*) \ |
duke@435 | 1278 | declare_toplevel_type(VMReg) \ |
duke@435 | 1279 | declare_toplevel_type(OSThread*) \ |
duke@435 | 1280 | declare_integer_type(ReferenceType) \ |
duke@435 | 1281 | declare_toplevel_type(StubQueue*) \ |
duke@435 | 1282 | declare_toplevel_type(Thread*) \ |
duke@435 | 1283 | declare_toplevel_type(Universe) |
duke@435 | 1284 | |
duke@435 | 1285 | /* NOTE that we do not use the last_entry() macro here; it is used */ |
duke@435 | 1286 | /* in vmStructs_<os>_<cpu>.hpp's VM_TYPES_OS_CPU macro (and must be */ |
duke@435 | 1287 | /* present there) */ |
duke@435 | 1288 | |
duke@435 | 1289 | //-------------------------------------------------------------------------------- |
duke@435 | 1290 | // VM_INT_CONSTANTS |
duke@435 | 1291 | // |
duke@435 | 1292 | // This table contains integer constants required over in the |
duke@435 | 1293 | // serviceability agent. The "declare_constant" macro is used for all |
duke@435 | 1294 | // enums, etc., while "declare_preprocessor_constant" must be used for |
duke@435 | 1295 | // all #defined constants. |
duke@435 | 1296 | |
duke@435 | 1297 | #define VM_INT_CONSTANTS(declare_constant, \ |
duke@435 | 1298 | declare_preprocessor_constant, \ |
duke@435 | 1299 | declare_c1_constant, \ |
duke@435 | 1300 | declare_c2_constant, \ |
duke@435 | 1301 | declare_c2_preprocessor_constant, \ |
duke@435 | 1302 | last_entry) \ |
duke@435 | 1303 | \ |
duke@435 | 1304 | /******************/ \ |
duke@435 | 1305 | /* Useful globals */ \ |
duke@435 | 1306 | /******************/ \ |
duke@435 | 1307 | \ |
duke@435 | 1308 | declare_constant(UseTLAB) \ |
duke@435 | 1309 | \ |
duke@435 | 1310 | /**************/ \ |
duke@435 | 1311 | /* Stack bias */ \ |
duke@435 | 1312 | /**************/ \ |
duke@435 | 1313 | \ |
duke@435 | 1314 | declare_preprocessor_constant("STACK_BIAS", STACK_BIAS) \ |
duke@435 | 1315 | \ |
duke@435 | 1316 | /****************/ \ |
duke@435 | 1317 | /* Object sizes */ \ |
duke@435 | 1318 | /****************/ \ |
duke@435 | 1319 | \ |
coleenp@548 | 1320 | declare_constant(oopSize) \ |
duke@435 | 1321 | declare_constant(LogBytesPerWord) \ |
duke@435 | 1322 | declare_constant(BytesPerLong) \ |
duke@435 | 1323 | \ |
duke@435 | 1324 | /********************/ \ |
duke@435 | 1325 | /* Object alignment */ \ |
duke@435 | 1326 | /********************/ \ |
duke@435 | 1327 | \ |
coleenp@548 | 1328 | declare_constant(MinObjAlignment) \ |
duke@435 | 1329 | declare_constant(MinObjAlignmentInBytes) \ |
coleenp@548 | 1330 | declare_constant(LogMinObjAlignmentInBytes) \ |
duke@435 | 1331 | \ |
duke@435 | 1332 | /********************************************/ \ |
duke@435 | 1333 | /* Generation and Space Hierarchy Constants */ \ |
duke@435 | 1334 | /********************************************/ \ |
duke@435 | 1335 | \ |
duke@435 | 1336 | declare_constant(ageTable::table_size) \ |
duke@435 | 1337 | \ |
duke@435 | 1338 | declare_constant(BarrierSet::ModRef) \ |
duke@435 | 1339 | declare_constant(BarrierSet::CardTableModRef) \ |
duke@435 | 1340 | declare_constant(BarrierSet::Other) \ |
duke@435 | 1341 | \ |
duke@435 | 1342 | declare_constant(BlockOffsetSharedArray::LogN) \ |
duke@435 | 1343 | declare_constant(BlockOffsetSharedArray::LogN_words) \ |
duke@435 | 1344 | declare_constant(BlockOffsetSharedArray::N_bytes) \ |
duke@435 | 1345 | declare_constant(BlockOffsetSharedArray::N_words) \ |
duke@435 | 1346 | \ |
duke@435 | 1347 | declare_constant(BlockOffsetArray::N_words) \ |
duke@435 | 1348 | \ |
duke@435 | 1349 | declare_constant(CardTableModRefBS::clean_card) \ |
duke@435 | 1350 | declare_constant(CardTableModRefBS::last_card) \ |
duke@435 | 1351 | declare_constant(CardTableModRefBS::dirty_card) \ |
duke@435 | 1352 | declare_constant(CardTableModRefBS::Precise) \ |
duke@435 | 1353 | declare_constant(CardTableModRefBS::ObjHeadPreciseArray) \ |
duke@435 | 1354 | declare_constant(CardTableModRefBS::card_shift) \ |
duke@435 | 1355 | declare_constant(CardTableModRefBS::card_size) \ |
duke@435 | 1356 | declare_constant(CardTableModRefBS::card_size_in_words) \ |
duke@435 | 1357 | \ |
duke@435 | 1358 | declare_constant(CardTableRS::youngergen_card) \ |
duke@435 | 1359 | \ |
duke@435 | 1360 | declare_constant(CollectedHeap::Abstract) \ |
duke@435 | 1361 | declare_constant(CollectedHeap::SharedHeap) \ |
duke@435 | 1362 | declare_constant(CollectedHeap::GenCollectedHeap) \ |
duke@435 | 1363 | \ |
duke@435 | 1364 | declare_constant(GenCollectedHeap::max_gens) \ |
duke@435 | 1365 | \ |
duke@435 | 1366 | /* constants from Generation::Name enum */ \ |
duke@435 | 1367 | \ |
duke@435 | 1368 | declare_constant(Generation::DefNew) \ |
duke@435 | 1369 | declare_constant(Generation::MarkSweepCompact) \ |
duke@435 | 1370 | declare_constant(Generation::Other) \ |
duke@435 | 1371 | \ |
duke@435 | 1372 | declare_constant(Generation::LogOfGenGrain) \ |
duke@435 | 1373 | declare_constant(Generation::GenGrain) \ |
duke@435 | 1374 | \ |
duke@435 | 1375 | declare_constant(HeapWordSize) \ |
duke@435 | 1376 | declare_constant(LogHeapWordSize) \ |
duke@435 | 1377 | \ |
duke@435 | 1378 | /* constants from PermGen::Name enum */ \ |
duke@435 | 1379 | \ |
duke@435 | 1380 | declare_constant(PermGen::MarkSweepCompact) \ |
duke@435 | 1381 | declare_constant(PermGen::MarkSweep) \ |
duke@435 | 1382 | \ |
duke@435 | 1383 | /************************/ \ |
duke@435 | 1384 | /* PerfMemory - jvmstat */ \ |
duke@435 | 1385 | /************************/ \ |
duke@435 | 1386 | \ |
duke@435 | 1387 | declare_preprocessor_constant("PERFDATA_MAJOR_VERSION", PERFDATA_MAJOR_VERSION) \ |
duke@435 | 1388 | declare_preprocessor_constant("PERFDATA_MINOR_VERSION", PERFDATA_MINOR_VERSION) \ |
duke@435 | 1389 | declare_preprocessor_constant("PERFDATA_BIG_ENDIAN", PERFDATA_BIG_ENDIAN) \ |
duke@435 | 1390 | declare_preprocessor_constant("PERFDATA_LITTLE_ENDIAN", PERFDATA_LITTLE_ENDIAN) \ |
duke@435 | 1391 | \ |
duke@435 | 1392 | /***************/ \ |
duke@435 | 1393 | /* SymbolTable */ \ |
duke@435 | 1394 | /***************/ \ |
duke@435 | 1395 | \ |
duke@435 | 1396 | declare_constant(SymbolTable::symbol_table_size) \ |
duke@435 | 1397 | \ |
duke@435 | 1398 | /***************/ \ |
duke@435 | 1399 | /* StringTable */ \ |
duke@435 | 1400 | /***************/ \ |
duke@435 | 1401 | \ |
duke@435 | 1402 | declare_constant(StringTable::string_table_size) \ |
duke@435 | 1403 | \ |
duke@435 | 1404 | /********************/ \ |
duke@435 | 1405 | /* SystemDictionary */ \ |
duke@435 | 1406 | /********************/ \ |
duke@435 | 1407 | \ |
duke@435 | 1408 | declare_constant(SystemDictionary::_loader_constraint_size) \ |
duke@435 | 1409 | declare_constant(SystemDictionary::_nof_buckets) \ |
duke@435 | 1410 | \ |
duke@435 | 1411 | /***********************************/ \ |
duke@435 | 1412 | /* LoaderConstraintTable constants */ \ |
duke@435 | 1413 | /***********************************/ \ |
duke@435 | 1414 | \ |
duke@435 | 1415 | declare_constant(LoaderConstraintTable::_loader_constraint_size) \ |
duke@435 | 1416 | declare_constant(LoaderConstraintTable::_nof_buckets) \ |
duke@435 | 1417 | \ |
duke@435 | 1418 | /************************************************************/ \ |
duke@435 | 1419 | /* HotSpot specific JVM_ACC constants from global anon enum */ \ |
duke@435 | 1420 | /************************************************************/ \ |
duke@435 | 1421 | \ |
duke@435 | 1422 | declare_constant(JVM_ACC_WRITTEN_FLAGS) \ |
duke@435 | 1423 | declare_constant(JVM_ACC_MONITOR_MATCH) \ |
duke@435 | 1424 | declare_constant(JVM_ACC_HAS_MONITOR_BYTECODES) \ |
duke@435 | 1425 | declare_constant(JVM_ACC_HAS_LOOPS) \ |
duke@435 | 1426 | declare_constant(JVM_ACC_LOOPS_FLAG_INIT) \ |
duke@435 | 1427 | declare_constant(JVM_ACC_QUEUED) \ |
duke@435 | 1428 | declare_constant(JVM_ACC_NOT_OSR_COMPILABLE) \ |
duke@435 | 1429 | declare_constant(JVM_ACC_HAS_LINE_NUMBER_TABLE) \ |
duke@435 | 1430 | declare_constant(JVM_ACC_HAS_CHECKED_EXCEPTIONS) \ |
duke@435 | 1431 | declare_constant(JVM_ACC_HAS_JSRS) \ |
duke@435 | 1432 | declare_constant(JVM_ACC_IS_OLD) \ |
duke@435 | 1433 | declare_constant(JVM_ACC_IS_OBSOLETE) \ |
duke@435 | 1434 | declare_constant(JVM_ACC_IS_PREFIXED_NATIVE) \ |
duke@435 | 1435 | declare_constant(JVM_ACC_HAS_MIRANDA_METHODS) \ |
duke@435 | 1436 | declare_constant(JVM_ACC_HAS_VANILLA_CONSTRUCTOR) \ |
duke@435 | 1437 | declare_constant(JVM_ACC_HAS_FINALIZER) \ |
duke@435 | 1438 | declare_constant(JVM_ACC_IS_CLONEABLE) \ |
duke@435 | 1439 | declare_constant(JVM_ACC_HAS_LOCAL_VARIABLE_TABLE) \ |
duke@435 | 1440 | declare_constant(JVM_ACC_PROMOTED_FLAGS) \ |
duke@435 | 1441 | declare_constant(JVM_ACC_FIELD_ACCESS_WATCHED) \ |
duke@435 | 1442 | declare_constant(JVM_ACC_FIELD_MODIFICATION_WATCHED) \ |
duke@435 | 1443 | \ |
duke@435 | 1444 | /*****************************/ \ |
duke@435 | 1445 | /* Thread::SuspendFlags enum */ \ |
duke@435 | 1446 | /*****************************/ \ |
duke@435 | 1447 | \ |
duke@435 | 1448 | declare_constant(Thread::_external_suspend) \ |
duke@435 | 1449 | declare_constant(Thread::_ext_suspended) \ |
duke@435 | 1450 | declare_constant(Thread::_has_async_exception) \ |
duke@435 | 1451 | \ |
duke@435 | 1452 | /*******************/ \ |
duke@435 | 1453 | /* JavaThreadState */ \ |
duke@435 | 1454 | /*******************/ \ |
duke@435 | 1455 | \ |
duke@435 | 1456 | declare_constant(_thread_uninitialized) \ |
duke@435 | 1457 | declare_constant(_thread_new) \ |
duke@435 | 1458 | declare_constant(_thread_new_trans) \ |
duke@435 | 1459 | declare_constant(_thread_in_native) \ |
duke@435 | 1460 | declare_constant(_thread_in_native_trans) \ |
duke@435 | 1461 | declare_constant(_thread_in_vm) \ |
duke@435 | 1462 | declare_constant(_thread_in_vm_trans) \ |
duke@435 | 1463 | declare_constant(_thread_in_Java) \ |
duke@435 | 1464 | declare_constant(_thread_in_Java_trans) \ |
duke@435 | 1465 | declare_constant(_thread_blocked) \ |
duke@435 | 1466 | declare_constant(_thread_blocked_trans) \ |
duke@435 | 1467 | \ |
duke@435 | 1468 | /******************************/ \ |
duke@435 | 1469 | /* Klass misc. enum constants */ \ |
duke@435 | 1470 | /******************************/ \ |
duke@435 | 1471 | \ |
duke@435 | 1472 | declare_constant(Klass::_primary_super_limit) \ |
duke@435 | 1473 | declare_constant(Klass::_lh_instance_slow_path_bit) \ |
duke@435 | 1474 | declare_constant(Klass::_lh_log2_element_size_shift) \ |
duke@435 | 1475 | declare_constant(Klass::_lh_element_type_shift) \ |
duke@435 | 1476 | declare_constant(Klass::_lh_header_size_shift) \ |
duke@435 | 1477 | declare_constant(Klass::_lh_array_tag_shift) \ |
duke@435 | 1478 | declare_constant(Klass::_lh_array_tag_type_value) \ |
duke@435 | 1479 | declare_constant(Klass::_lh_array_tag_obj_value) \ |
duke@435 | 1480 | \ |
duke@435 | 1481 | /********************************/ \ |
duke@435 | 1482 | /* constMethodOopDesc anon-enum */ \ |
duke@435 | 1483 | /********************************/ \ |
duke@435 | 1484 | \ |
duke@435 | 1485 | declare_constant(constMethodOopDesc::_has_linenumber_table) \ |
duke@435 | 1486 | declare_constant(constMethodOopDesc::_has_checked_exceptions) \ |
duke@435 | 1487 | declare_constant(constMethodOopDesc::_has_localvariable_table) \ |
duke@435 | 1488 | \ |
duke@435 | 1489 | /*************************************/ \ |
duke@435 | 1490 | /* instanceKlass FieldOffset enum */ \ |
duke@435 | 1491 | /*************************************/ \ |
duke@435 | 1492 | \ |
duke@435 | 1493 | declare_constant(instanceKlass::access_flags_offset) \ |
duke@435 | 1494 | declare_constant(instanceKlass::name_index_offset) \ |
duke@435 | 1495 | declare_constant(instanceKlass::signature_index_offset) \ |
duke@435 | 1496 | declare_constant(instanceKlass::initval_index_offset) \ |
duke@435 | 1497 | declare_constant(instanceKlass::low_offset) \ |
duke@435 | 1498 | declare_constant(instanceKlass::high_offset) \ |
duke@435 | 1499 | declare_constant(instanceKlass::generic_signature_offset) \ |
duke@435 | 1500 | declare_constant(instanceKlass::next_offset) \ |
duke@435 | 1501 | declare_constant(instanceKlass::implementors_limit) \ |
duke@435 | 1502 | \ |
duke@435 | 1503 | /************************************************/ \ |
duke@435 | 1504 | /* instanceKlass InnerClassAttributeOffset enum */ \ |
duke@435 | 1505 | /************************************************/ \ |
duke@435 | 1506 | \ |
duke@435 | 1507 | declare_constant(instanceKlass::inner_class_inner_class_info_offset) \ |
duke@435 | 1508 | declare_constant(instanceKlass::inner_class_outer_class_info_offset) \ |
duke@435 | 1509 | declare_constant(instanceKlass::inner_class_inner_name_offset) \ |
duke@435 | 1510 | declare_constant(instanceKlass::inner_class_access_flags_offset) \ |
duke@435 | 1511 | declare_constant(instanceKlass::inner_class_next_offset) \ |
duke@435 | 1512 | \ |
duke@435 | 1513 | /*********************************/ \ |
duke@435 | 1514 | /* instanceKlass ClassState enum */ \ |
duke@435 | 1515 | /*********************************/ \ |
duke@435 | 1516 | \ |
duke@435 | 1517 | declare_constant(instanceKlass::unparsable_by_gc) \ |
duke@435 | 1518 | declare_constant(instanceKlass::allocated) \ |
duke@435 | 1519 | declare_constant(instanceKlass::loaded) \ |
duke@435 | 1520 | declare_constant(instanceKlass::linked) \ |
duke@435 | 1521 | declare_constant(instanceKlass::being_initialized) \ |
duke@435 | 1522 | declare_constant(instanceKlass::fully_initialized) \ |
duke@435 | 1523 | declare_constant(instanceKlass::initialization_error) \ |
duke@435 | 1524 | \ |
duke@435 | 1525 | /*********************************/ \ |
duke@435 | 1526 | /* symbolOop - symbol max length */ \ |
duke@435 | 1527 | /*********************************/ \ |
duke@435 | 1528 | \ |
duke@435 | 1529 | declare_constant(symbolOopDesc::max_symbol_length) \ |
duke@435 | 1530 | \ |
duke@435 | 1531 | /*********************************************/ \ |
duke@435 | 1532 | /* ConstantPoolCacheEntry FlagBitValues enum */ \ |
duke@435 | 1533 | /*********************************************/ \ |
duke@435 | 1534 | \ |
duke@435 | 1535 | declare_constant(ConstantPoolCacheEntry::hotSwapBit) \ |
duke@435 | 1536 | declare_constant(ConstantPoolCacheEntry::methodInterface) \ |
duke@435 | 1537 | declare_constant(ConstantPoolCacheEntry::volatileField) \ |
duke@435 | 1538 | declare_constant(ConstantPoolCacheEntry::vfinalMethod) \ |
duke@435 | 1539 | declare_constant(ConstantPoolCacheEntry::finalField) \ |
duke@435 | 1540 | \ |
duke@435 | 1541 | /******************************************/ \ |
duke@435 | 1542 | /* ConstantPoolCacheEntry FlagValues enum */ \ |
duke@435 | 1543 | /******************************************/ \ |
duke@435 | 1544 | \ |
duke@435 | 1545 | declare_constant(ConstantPoolCacheEntry::tosBits) \ |
duke@435 | 1546 | \ |
duke@435 | 1547 | /*********************************/ \ |
duke@435 | 1548 | /* java_lang_Class field offsets */ \ |
duke@435 | 1549 | /*********************************/ \ |
duke@435 | 1550 | \ |
duke@435 | 1551 | declare_constant(java_lang_Class::hc_klass_offset) \ |
duke@435 | 1552 | declare_constant(java_lang_Class::hc_array_klass_offset) \ |
duke@435 | 1553 | declare_constant(java_lang_Class::hc_resolved_constructor_offset) \ |
duke@435 | 1554 | declare_constant(java_lang_Class::hc_number_of_fake_oop_fields) \ |
duke@435 | 1555 | \ |
duke@435 | 1556 | /***************************************/ \ |
duke@435 | 1557 | /* java_lang_Thread::ThreadStatus enum */ \ |
duke@435 | 1558 | /***************************************/ \ |
duke@435 | 1559 | \ |
duke@435 | 1560 | declare_constant(java_lang_Thread::NEW) \ |
duke@435 | 1561 | declare_constant(java_lang_Thread::RUNNABLE) \ |
duke@435 | 1562 | declare_constant(java_lang_Thread::SLEEPING) \ |
duke@435 | 1563 | declare_constant(java_lang_Thread::IN_OBJECT_WAIT) \ |
duke@435 | 1564 | declare_constant(java_lang_Thread::IN_OBJECT_WAIT_TIMED) \ |
duke@435 | 1565 | declare_constant(java_lang_Thread::PARKED) \ |
duke@435 | 1566 | declare_constant(java_lang_Thread::PARKED_TIMED) \ |
duke@435 | 1567 | declare_constant(java_lang_Thread::BLOCKED_ON_MONITOR_ENTER) \ |
duke@435 | 1568 | declare_constant(java_lang_Thread::TERMINATED) \ |
duke@435 | 1569 | \ |
duke@435 | 1570 | /******************************/ \ |
duke@435 | 1571 | /* Debug info */ \ |
duke@435 | 1572 | /******************************/ \ |
duke@435 | 1573 | \ |
duke@435 | 1574 | declare_constant(Location::OFFSET_MASK) \ |
duke@435 | 1575 | declare_constant(Location::OFFSET_SHIFT) \ |
duke@435 | 1576 | declare_constant(Location::TYPE_MASK) \ |
duke@435 | 1577 | declare_constant(Location::TYPE_SHIFT) \ |
duke@435 | 1578 | declare_constant(Location::WHERE_MASK) \ |
duke@435 | 1579 | declare_constant(Location::WHERE_SHIFT) \ |
duke@435 | 1580 | \ |
duke@435 | 1581 | /* constants from Location::Type enum */ \ |
duke@435 | 1582 | \ |
duke@435 | 1583 | declare_constant(Location::normal) \ |
duke@435 | 1584 | declare_constant(Location::oop) \ |
duke@435 | 1585 | declare_constant(Location::int_in_long) \ |
duke@435 | 1586 | declare_constant(Location::lng) \ |
duke@435 | 1587 | declare_constant(Location::float_in_dbl) \ |
duke@435 | 1588 | declare_constant(Location::dbl) \ |
duke@435 | 1589 | declare_constant(Location::addr) \ |
duke@435 | 1590 | declare_constant(Location::invalid) \ |
duke@435 | 1591 | \ |
duke@435 | 1592 | /* constants from Location::Where enum */ \ |
duke@435 | 1593 | \ |
duke@435 | 1594 | declare_constant(Location::on_stack) \ |
duke@435 | 1595 | declare_constant(Location::in_register) \ |
duke@435 | 1596 | \ |
duke@435 | 1597 | /*********************/ \ |
duke@435 | 1598 | /* Matcher (C2 only) */ \ |
duke@435 | 1599 | /*********************/ \ |
duke@435 | 1600 | \ |
duke@435 | 1601 | declare_c2_preprocessor_constant("Matcher::interpreter_frame_pointer_reg", Matcher::interpreter_frame_pointer_reg()) \ |
duke@435 | 1602 | \ |
duke@435 | 1603 | /*********************************************/ \ |
duke@435 | 1604 | /* MethodCompilation (globalDefinitions.hpp) */ \ |
duke@435 | 1605 | /*********************************************/ \ |
duke@435 | 1606 | \ |
duke@435 | 1607 | declare_constant(InvocationEntryBci) \ |
duke@435 | 1608 | declare_constant(InvalidOSREntryBci) \ |
duke@435 | 1609 | \ |
duke@435 | 1610 | /***************/ \ |
duke@435 | 1611 | /* OopMapValue */ \ |
duke@435 | 1612 | /***************/ \ |
duke@435 | 1613 | \ |
duke@435 | 1614 | declare_constant(OopMapValue::type_bits) \ |
duke@435 | 1615 | declare_constant(OopMapValue::register_bits) \ |
duke@435 | 1616 | declare_constant(OopMapValue::type_shift) \ |
duke@435 | 1617 | declare_constant(OopMapValue::register_shift) \ |
duke@435 | 1618 | declare_constant(OopMapValue::type_mask) \ |
duke@435 | 1619 | declare_constant(OopMapValue::type_mask_in_place) \ |
duke@435 | 1620 | declare_constant(OopMapValue::register_mask) \ |
duke@435 | 1621 | declare_constant(OopMapValue::register_mask_in_place) \ |
duke@435 | 1622 | declare_constant(OopMapValue::unused_value) \ |
duke@435 | 1623 | declare_constant(OopMapValue::oop_value) \ |
duke@435 | 1624 | declare_constant(OopMapValue::value_value) \ |
coleenp@548 | 1625 | declare_constant(OopMapValue::narrowoop_value) \ |
duke@435 | 1626 | declare_constant(OopMapValue::callee_saved_value) \ |
duke@435 | 1627 | declare_constant(OopMapValue::derived_oop_value) \ |
duke@435 | 1628 | \ |
duke@435 | 1629 | /******************/ \ |
duke@435 | 1630 | /* JNIHandleBlock */ \ |
duke@435 | 1631 | /******************/ \ |
duke@435 | 1632 | \ |
duke@435 | 1633 | declare_constant(JNIHandleBlock::block_size_in_oops) \ |
duke@435 | 1634 | \ |
duke@435 | 1635 | /**********************/ \ |
duke@435 | 1636 | /* ObjectSynchronizer */ \ |
duke@435 | 1637 | /**********************/ \ |
duke@435 | 1638 | \ |
duke@435 | 1639 | declare_constant(ObjectSynchronizer::_BLOCKSIZE) \ |
duke@435 | 1640 | \ |
duke@435 | 1641 | /********************************/ \ |
duke@435 | 1642 | /* Calling convention constants */ \ |
duke@435 | 1643 | /********************************/ \ |
duke@435 | 1644 | \ |
duke@435 | 1645 | declare_constant(RegisterImpl::number_of_registers) \ |
duke@435 | 1646 | declare_constant(ConcreteRegisterImpl::number_of_registers) \ |
duke@435 | 1647 | declare_preprocessor_constant("REG_COUNT", REG_COUNT) \ |
duke@435 | 1648 | declare_c2_preprocessor_constant("SAVED_ON_ENTRY_REG_COUNT", SAVED_ON_ENTRY_REG_COUNT) \ |
duke@435 | 1649 | declare_c2_preprocessor_constant("C_SAVED_ON_ENTRY_REG_COUNT", C_SAVED_ON_ENTRY_REG_COUNT) |
duke@435 | 1650 | |
duke@435 | 1651 | /* NOTE that we do not use the last_entry() macro here; it is used */ |
duke@435 | 1652 | /* in vmStructs_<os>_<cpu>.hpp's VM_INT_CONSTANTS_OS_CPU macro (and */ |
duke@435 | 1653 | /* must be present there) */ |
duke@435 | 1654 | |
duke@435 | 1655 | //-------------------------------------------------------------------------------- |
duke@435 | 1656 | // VM_LONG_CONSTANTS |
duke@435 | 1657 | // |
duke@435 | 1658 | // This table contains long constants required over in the |
duke@435 | 1659 | // serviceability agent. The "declare_constant" macro is used for all |
duke@435 | 1660 | // enums, etc., while "declare_preprocessor_constant" must be used for |
duke@435 | 1661 | // all #defined constants. |
duke@435 | 1662 | |
duke@435 | 1663 | #define VM_LONG_CONSTANTS(declare_constant, declare_preprocessor_constant, declare_c1_constant, declare_c2_constant, declare_c2_preprocessor_constant, last_entry) \ |
duke@435 | 1664 | \ |
duke@435 | 1665 | /*********************/ \ |
duke@435 | 1666 | /* MarkOop constants */ \ |
duke@435 | 1667 | /*********************/ \ |
duke@435 | 1668 | \ |
duke@435 | 1669 | /* Note: some of these are declared as long constants just for */ \ |
duke@435 | 1670 | /* consistency. The mask constants are the only ones requiring */ \ |
duke@435 | 1671 | /* 64 bits (on 64-bit platforms). */ \ |
duke@435 | 1672 | \ |
duke@435 | 1673 | declare_constant(markOopDesc::age_bits) \ |
duke@435 | 1674 | declare_constant(markOopDesc::lock_bits) \ |
duke@435 | 1675 | declare_constant(markOopDesc::biased_lock_bits) \ |
duke@435 | 1676 | declare_constant(markOopDesc::max_hash_bits) \ |
duke@435 | 1677 | declare_constant(markOopDesc::hash_bits) \ |
duke@435 | 1678 | \ |
duke@435 | 1679 | declare_constant(markOopDesc::lock_shift) \ |
duke@435 | 1680 | declare_constant(markOopDesc::biased_lock_shift) \ |
duke@435 | 1681 | declare_constant(markOopDesc::age_shift) \ |
duke@435 | 1682 | declare_constant(markOopDesc::hash_shift) \ |
duke@435 | 1683 | \ |
duke@435 | 1684 | declare_constant(markOopDesc::lock_mask) \ |
duke@435 | 1685 | declare_constant(markOopDesc::lock_mask_in_place) \ |
duke@435 | 1686 | declare_constant(markOopDesc::biased_lock_mask) \ |
duke@435 | 1687 | declare_constant(markOopDesc::biased_lock_mask_in_place) \ |
duke@435 | 1688 | declare_constant(markOopDesc::biased_lock_bit_in_place) \ |
duke@435 | 1689 | declare_constant(markOopDesc::age_mask) \ |
duke@435 | 1690 | declare_constant(markOopDesc::age_mask_in_place) \ |
duke@435 | 1691 | declare_constant(markOopDesc::hash_mask) \ |
duke@435 | 1692 | declare_constant(markOopDesc::hash_mask_in_place) \ |
duke@435 | 1693 | declare_constant(markOopDesc::biased_lock_alignment) \ |
duke@435 | 1694 | \ |
duke@435 | 1695 | declare_constant(markOopDesc::locked_value) \ |
duke@435 | 1696 | declare_constant(markOopDesc::unlocked_value) \ |
duke@435 | 1697 | declare_constant(markOopDesc::monitor_value) \ |
duke@435 | 1698 | declare_constant(markOopDesc::marked_value) \ |
duke@435 | 1699 | declare_constant(markOopDesc::biased_lock_pattern) \ |
duke@435 | 1700 | \ |
duke@435 | 1701 | declare_constant(markOopDesc::no_hash) \ |
duke@435 | 1702 | declare_constant(markOopDesc::no_hash_in_place) \ |
duke@435 | 1703 | declare_constant(markOopDesc::no_lock_in_place) \ |
coleenp@622 | 1704 | declare_constant(markOopDesc::max_age) \ |
coleenp@622 | 1705 | \ |
coleenp@622 | 1706 | /* Constants in markOop used by CMS. */ \ |
coleenp@622 | 1707 | declare_constant(markOopDesc::cms_shift) \ |
coleenp@622 | 1708 | declare_constant(markOopDesc::cms_mask) \ |
coleenp@622 | 1709 | declare_constant(markOopDesc::size_shift) \ |
duke@435 | 1710 | |
duke@435 | 1711 | /* NOTE that we do not use the last_entry() macro here; it is used */ |
duke@435 | 1712 | /* in vmStructs_<os>_<cpu>.hpp's VM_LONG_CONSTANTS_OS_CPU macro (and */ |
duke@435 | 1713 | /* must be present there) */ |
duke@435 | 1714 | |
duke@435 | 1715 | |
duke@435 | 1716 | //-------------------------------------------------------------------------------- |
duke@435 | 1717 | // Macros operating on the above lists |
duke@435 | 1718 | //-------------------------------------------------------------------------------- |
duke@435 | 1719 | |
duke@435 | 1720 | // This utility macro quotes the passed string |
duke@435 | 1721 | #define QUOTE(x) #x |
duke@435 | 1722 | |
duke@435 | 1723 | //-------------------------------------------------------------------------------- |
duke@435 | 1724 | // VMStructEntry macros |
duke@435 | 1725 | // |
duke@435 | 1726 | |
duke@435 | 1727 | // This macro generates a VMStructEntry line for a nonstatic field |
duke@435 | 1728 | #define GENERATE_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \ |
duke@435 | 1729 | { QUOTE(typeName), QUOTE(fieldName), QUOTE(type), 0, cast_uint64_t(offset_of(typeName, fieldName)), NULL }, |
duke@435 | 1730 | |
duke@435 | 1731 | // This macro generates a VMStructEntry line for a static field |
duke@435 | 1732 | #define GENERATE_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \ |
duke@435 | 1733 | { QUOTE(typeName), QUOTE(fieldName), QUOTE(type), 1, 0, &typeName::fieldName }, |
duke@435 | 1734 | |
duke@435 | 1735 | // This macro generates a VMStructEntry line for an unchecked |
duke@435 | 1736 | // nonstatic field, in which the size of the type is also specified. |
duke@435 | 1737 | // The type string is given as NULL, indicating an "opaque" type. |
duke@435 | 1738 | #define GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, size) \ |
duke@435 | 1739 | { QUOTE(typeName), QUOTE(fieldName), NULL, 0, cast_uint64_t(offset_of(typeName, fieldName)), NULL }, |
duke@435 | 1740 | |
duke@435 | 1741 | // This macro generates a VMStructEntry line for an unchecked |
duke@435 | 1742 | // static field, in which the size of the type is also specified. |
duke@435 | 1743 | // The type string is given as NULL, indicating an "opaque" type. |
duke@435 | 1744 | #define GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, size) \ |
duke@435 | 1745 | { QUOTE(typeName), QUOTE(fieldName), NULL, 1, 0, (void*) &typeName::fieldName }, |
duke@435 | 1746 | |
duke@435 | 1747 | // This macro generates the sentinel value indicating the end of the list |
duke@435 | 1748 | #define GENERATE_VM_STRUCT_LAST_ENTRY() \ |
duke@435 | 1749 | { NULL, NULL, NULL, 0, 0, NULL } |
duke@435 | 1750 | |
duke@435 | 1751 | // This macro checks the type of a VMStructEntry by comparing pointer types |
duke@435 | 1752 | #define CHECK_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \ |
duke@435 | 1753 | {typeName *dummyObj = NULL; type* dummy = &dummyObj->fieldName; } |
duke@435 | 1754 | |
duke@435 | 1755 | // This macro checks the type of a volatile VMStructEntry by comparing pointer types |
duke@435 | 1756 | #define CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \ |
duke@435 | 1757 | {typedef type dummyvtype; typeName *dummyObj = NULL; volatile dummyvtype* dummy = &dummyObj->fieldName; } |
duke@435 | 1758 | |
duke@435 | 1759 | // This macro checks the type of a VMStructEntry by comparing pointer types |
duke@435 | 1760 | #define CHECK_STATIC_VM_STRUCT_ENTRY(typeName, fieldName, type) \ |
duke@435 | 1761 | {type* dummy = &typeName::fieldName; } |
duke@435 | 1762 | |
duke@435 | 1763 | // This macro ensures the type of a field and its containing type are |
duke@435 | 1764 | // present in the type table. The assertion string is shorter than |
duke@435 | 1765 | // preferable because (incredibly) of a bug in Solstice NFS client |
duke@435 | 1766 | // which seems to prevent very long lines from compiling. This assertion |
duke@435 | 1767 | // means that an entry in VMStructs::localHotSpotVMStructs[] was not |
duke@435 | 1768 | // found in VMStructs::localHotSpotVMTypes[]. |
duke@435 | 1769 | #define ENSURE_FIELD_TYPE_PRESENT(typeName, fieldName, type) \ |
duke@435 | 1770 | { assert(findType(QUOTE(typeName)) != 0, "type \"" QUOTE(typeName) "\" not found in type table"); \ |
duke@435 | 1771 | assert(findType(QUOTE(type)) != 0, "type \"" QUOTE(type) "\" not found in type table"); } |
duke@435 | 1772 | |
duke@435 | 1773 | // This is a no-op macro for unchecked fields |
duke@435 | 1774 | #define CHECK_NO_OP(a, b, c) |
duke@435 | 1775 | |
duke@435 | 1776 | // This is a no-op macro for the sentinel value |
duke@435 | 1777 | #define CHECK_SENTINEL() |
duke@435 | 1778 | |
duke@435 | 1779 | // |
duke@435 | 1780 | // Build-specific macros: |
duke@435 | 1781 | // |
duke@435 | 1782 | |
duke@435 | 1783 | // Generate and check a nonstatic field in non-product builds |
duke@435 | 1784 | #ifndef PRODUCT |
duke@435 | 1785 | # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1786 | # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1787 | # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1788 | # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1789 | # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1790 | # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1791 | #else |
duke@435 | 1792 | # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1793 | # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1794 | # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1795 | # define GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1796 | # define CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1797 | # define ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1798 | #endif /* PRODUCT */ |
duke@435 | 1799 | |
duke@435 | 1800 | // Generate and check a nonstatic field in C1 builds |
duke@435 | 1801 | #ifdef COMPILER1 |
duke@435 | 1802 | # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1803 | # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1804 | # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1805 | #else |
duke@435 | 1806 | # define GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1807 | # define CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1808 | # define ENSURE_C1_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1809 | #endif /* COMPILER1 */ |
duke@435 | 1810 | // Generate and check a nonstatic field in C2 builds |
duke@435 | 1811 | #ifdef COMPILER2 |
duke@435 | 1812 | # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1813 | # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) CHECK_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1814 | # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c) ENSURE_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1815 | #else |
duke@435 | 1816 | # define GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1817 | # define CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1818 | # define ENSURE_C2_FIELD_TYPE_PRESENT(a, b, c) |
duke@435 | 1819 | #endif /* COMPILER2 */ |
duke@435 | 1820 | |
duke@435 | 1821 | // Generate but do not check a static field in C1 builds |
duke@435 | 1822 | #ifdef COMPILER1 |
duke@435 | 1823 | # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1824 | #else |
duke@435 | 1825 | # define GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1826 | #endif /* COMPILER1 */ |
duke@435 | 1827 | |
duke@435 | 1828 | // Generate but do not check a static field in C2 builds |
duke@435 | 1829 | #ifdef COMPILER2 |
duke@435 | 1830 | # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) GENERATE_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1831 | #else |
duke@435 | 1832 | # define GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY(a, b, c) |
duke@435 | 1833 | #endif /* COMPILER2 */ |
duke@435 | 1834 | |
duke@435 | 1835 | //-------------------------------------------------------------------------------- |
duke@435 | 1836 | // VMTypeEntry macros |
duke@435 | 1837 | // |
duke@435 | 1838 | |
duke@435 | 1839 | #define GENERATE_VM_TYPE_ENTRY(type, superclass) \ |
duke@435 | 1840 | { QUOTE(type), QUOTE(superclass), 0, 0, 0, sizeof(type) }, |
duke@435 | 1841 | |
duke@435 | 1842 | #define GENERATE_TOPLEVEL_VM_TYPE_ENTRY(type) \ |
duke@435 | 1843 | { QUOTE(type), NULL, 0, 0, 0, sizeof(type) }, |
duke@435 | 1844 | |
duke@435 | 1845 | #define GENERATE_OOP_VM_TYPE_ENTRY(type) \ |
duke@435 | 1846 | { QUOTE(type), NULL, 1, 0, 0, sizeof(type) }, |
duke@435 | 1847 | |
duke@435 | 1848 | #define GENERATE_INTEGER_VM_TYPE_ENTRY(type) \ |
duke@435 | 1849 | { QUOTE(type), NULL, 0, 1, 0, sizeof(type) }, |
duke@435 | 1850 | |
duke@435 | 1851 | #define GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY(type) \ |
duke@435 | 1852 | { QUOTE(type), NULL, 0, 1, 1, sizeof(type) }, |
duke@435 | 1853 | |
duke@435 | 1854 | #define GENERATE_VM_TYPE_LAST_ENTRY() \ |
duke@435 | 1855 | { NULL, NULL, 0, 0, 0, 0 } |
duke@435 | 1856 | |
duke@435 | 1857 | #define CHECK_VM_TYPE_ENTRY(type, superclass) \ |
duke@435 | 1858 | { type* dummyObj = NULL; superclass* dummySuperObj = dummyObj; } |
duke@435 | 1859 | |
duke@435 | 1860 | #define CHECK_VM_TYPE_NO_OP(a) |
duke@435 | 1861 | #define CHECK_SINGLE_ARG_VM_TYPE_NO_OP(a) |
duke@435 | 1862 | |
duke@435 | 1863 | // |
duke@435 | 1864 | // Build-specific macros: |
duke@435 | 1865 | // |
duke@435 | 1866 | |
duke@435 | 1867 | #ifdef COMPILER1 |
duke@435 | 1868 | # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1869 | # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1870 | #else |
duke@435 | 1871 | # define GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1872 | # define CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1873 | #endif /* COMPILER1 */ |
duke@435 | 1874 | |
duke@435 | 1875 | #ifdef COMPILER2 |
duke@435 | 1876 | # define GENERATE_C2_VM_TYPE_ENTRY(a, b) GENERATE_VM_TYPE_ENTRY(a, b) |
duke@435 | 1877 | # define CHECK_C2_VM_TYPE_ENTRY(a, b) CHECK_VM_TYPE_ENTRY(a, b) |
duke@435 | 1878 | # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a) GENERATE_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1879 | # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1880 | #else |
duke@435 | 1881 | # define GENERATE_C2_VM_TYPE_ENTRY(a, b) |
duke@435 | 1882 | # define CHECK_C2_VM_TYPE_ENTRY(a, b) |
duke@435 | 1883 | # define GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1884 | # define CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY(a) |
duke@435 | 1885 | #endif /* COMPILER2 */ |
duke@435 | 1886 | |
duke@435 | 1887 | |
duke@435 | 1888 | //-------------------------------------------------------------------------------- |
duke@435 | 1889 | // VMIntConstantEntry macros |
duke@435 | 1890 | // |
duke@435 | 1891 | |
duke@435 | 1892 | #define GENERATE_VM_INT_CONSTANT_ENTRY(name) \ |
duke@435 | 1893 | { QUOTE(name), (int32_t) name }, |
duke@435 | 1894 | |
duke@435 | 1895 | #define GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) \ |
duke@435 | 1896 | { name, (int32_t) value }, |
duke@435 | 1897 | |
duke@435 | 1898 | // This macro generates the sentinel value indicating the end of the list |
duke@435 | 1899 | #define GENERATE_VM_INT_CONSTANT_LAST_ENTRY() \ |
duke@435 | 1900 | { NULL, 0 } |
duke@435 | 1901 | |
duke@435 | 1902 | |
duke@435 | 1903 | // Generate an int constant for a C1 build |
duke@435 | 1904 | #ifdef COMPILER1 |
duke@435 | 1905 | # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name) |
duke@435 | 1906 | #else |
duke@435 | 1907 | # define GENERATE_C1_VM_INT_CONSTANT_ENTRY(name) |
duke@435 | 1908 | #endif /* COMPILER1 */ |
duke@435 | 1909 | |
duke@435 | 1910 | // Generate an int constant for a C2 build |
duke@435 | 1911 | #ifdef COMPILER2 |
duke@435 | 1912 | # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name) GENERATE_VM_INT_CONSTANT_ENTRY(name) |
duke@435 | 1913 | # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) |
duke@435 | 1914 | #else |
duke@435 | 1915 | # define GENERATE_C2_VM_INT_CONSTANT_ENTRY(name) |
duke@435 | 1916 | # define GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY(name, value) |
duke@435 | 1917 | #endif /* COMPILER1 */ |
duke@435 | 1918 | |
duke@435 | 1919 | //-------------------------------------------------------------------------------- |
duke@435 | 1920 | // VMLongConstantEntry macros |
duke@435 | 1921 | // |
duke@435 | 1922 | |
duke@435 | 1923 | #define GENERATE_VM_LONG_CONSTANT_ENTRY(name) \ |
duke@435 | 1924 | { QUOTE(name), cast_uint64_t(name) }, |
duke@435 | 1925 | |
duke@435 | 1926 | #define GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) \ |
duke@435 | 1927 | { name, cast_uint64_t(value) }, |
duke@435 | 1928 | |
duke@435 | 1929 | // This macro generates the sentinel value indicating the end of the list |
duke@435 | 1930 | #define GENERATE_VM_LONG_CONSTANT_LAST_ENTRY() \ |
duke@435 | 1931 | { NULL, 0 } |
duke@435 | 1932 | |
duke@435 | 1933 | // Generate a long constant for a C1 build |
duke@435 | 1934 | #ifdef COMPILER1 |
duke@435 | 1935 | # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name) |
duke@435 | 1936 | #else |
duke@435 | 1937 | # define GENERATE_C1_VM_LONG_CONSTANT_ENTRY(name) |
duke@435 | 1938 | #endif /* COMPILER1 */ |
duke@435 | 1939 | |
duke@435 | 1940 | // Generate a long constant for a C2 build |
duke@435 | 1941 | #ifdef COMPILER2 |
duke@435 | 1942 | # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name) GENERATE_VM_LONG_CONSTANT_ENTRY(name) |
duke@435 | 1943 | # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) |
duke@435 | 1944 | #else |
duke@435 | 1945 | # define GENERATE_C2_VM_LONG_CONSTANT_ENTRY(name) |
duke@435 | 1946 | # define GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY(name, value) |
duke@435 | 1947 | #endif /* COMPILER1 */ |
duke@435 | 1948 | |
duke@435 | 1949 | // |
duke@435 | 1950 | // Instantiation of VMStructEntries, VMTypeEntries and VMIntConstantEntries |
duke@435 | 1951 | // |
duke@435 | 1952 | |
duke@435 | 1953 | // These initializers are allowed to access private fields in classes |
duke@435 | 1954 | // as long as class VMStructs is a friend |
duke@435 | 1955 | VMStructEntry VMStructs::localHotSpotVMStructs[] = { |
duke@435 | 1956 | |
duke@435 | 1957 | VM_STRUCTS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1958 | GENERATE_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1959 | GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1960 | GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1961 | GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1962 | GENERATE_C1_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1963 | GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1964 | GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1965 | GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1966 | GENERATE_VM_STRUCT_LAST_ENTRY) |
duke@435 | 1967 | |
duke@435 | 1968 | #ifndef SERIALGC |
duke@435 | 1969 | VM_STRUCTS_PARALLELGC(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1970 | GENERATE_STATIC_VM_STRUCT_ENTRY) |
duke@435 | 1971 | |
duke@435 | 1972 | VM_STRUCTS_CMS(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
coleenp@622 | 1973 | GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1974 | GENERATE_STATIC_VM_STRUCT_ENTRY) |
duke@435 | 1975 | #endif // SERIALGC |
duke@435 | 1976 | |
duke@435 | 1977 | VM_STRUCTS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1978 | GENERATE_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1979 | GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1980 | GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1981 | GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1982 | GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1983 | GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1984 | GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1985 | GENERATE_VM_STRUCT_LAST_ENTRY) |
duke@435 | 1986 | |
duke@435 | 1987 | VM_STRUCTS_OS_CPU(GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1988 | GENERATE_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1989 | GENERATE_UNCHECKED_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1990 | GENERATE_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1991 | GENERATE_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1992 | GENERATE_C2_NONSTATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1993 | GENERATE_C1_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1994 | GENERATE_C2_UNCHECKED_STATIC_VM_STRUCT_ENTRY, \ |
duke@435 | 1995 | GENERATE_VM_STRUCT_LAST_ENTRY) |
duke@435 | 1996 | }; |
duke@435 | 1997 | |
duke@435 | 1998 | VMTypeEntry VMStructs::localHotSpotVMTypes[] = { |
duke@435 | 1999 | |
duke@435 | 2000 | VM_TYPES(GENERATE_VM_TYPE_ENTRY, |
duke@435 | 2001 | GENERATE_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2002 | GENERATE_OOP_VM_TYPE_ENTRY, |
duke@435 | 2003 | GENERATE_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2004 | GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2005 | GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2006 | GENERATE_C2_VM_TYPE_ENTRY, |
duke@435 | 2007 | GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2008 | GENERATE_VM_TYPE_LAST_ENTRY) |
duke@435 | 2009 | |
duke@435 | 2010 | #ifndef SERIALGC |
duke@435 | 2011 | VM_TYPES_PARALLELGC(GENERATE_VM_TYPE_ENTRY, |
duke@435 | 2012 | GENERATE_TOPLEVEL_VM_TYPE_ENTRY) |
duke@435 | 2013 | |
duke@435 | 2014 | VM_TYPES_CMS(GENERATE_VM_TYPE_ENTRY, |
duke@435 | 2015 | GENERATE_TOPLEVEL_VM_TYPE_ENTRY) |
duke@435 | 2016 | |
duke@435 | 2017 | VM_TYPES_PARNEW(GENERATE_VM_TYPE_ENTRY) |
duke@435 | 2018 | #endif // SERIALGC |
duke@435 | 2019 | |
duke@435 | 2020 | VM_TYPES_CPU(GENERATE_VM_TYPE_ENTRY, |
duke@435 | 2021 | GENERATE_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2022 | GENERATE_OOP_VM_TYPE_ENTRY, |
duke@435 | 2023 | GENERATE_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2024 | GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2025 | GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2026 | GENERATE_C2_VM_TYPE_ENTRY, |
duke@435 | 2027 | GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2028 | GENERATE_VM_TYPE_LAST_ENTRY) |
duke@435 | 2029 | |
duke@435 | 2030 | VM_TYPES_OS_CPU(GENERATE_VM_TYPE_ENTRY, |
duke@435 | 2031 | GENERATE_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2032 | GENERATE_OOP_VM_TYPE_ENTRY, |
duke@435 | 2033 | GENERATE_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2034 | GENERATE_UNSIGNED_INTEGER_VM_TYPE_ENTRY, |
duke@435 | 2035 | GENERATE_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2036 | GENERATE_C2_VM_TYPE_ENTRY, |
duke@435 | 2037 | GENERATE_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2038 | GENERATE_VM_TYPE_LAST_ENTRY) |
duke@435 | 2039 | }; |
duke@435 | 2040 | |
duke@435 | 2041 | VMIntConstantEntry VMStructs::localHotSpotVMIntConstants[] = { |
duke@435 | 2042 | |
duke@435 | 2043 | VM_INT_CONSTANTS(GENERATE_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2044 | GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2045 | GENERATE_C1_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2046 | GENERATE_C2_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2047 | GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2048 | GENERATE_VM_INT_CONSTANT_LAST_ENTRY) |
duke@435 | 2049 | |
duke@435 | 2050 | #ifndef SERIALGC |
duke@435 | 2051 | VM_INT_CONSTANTS_CMS(GENERATE_VM_INT_CONSTANT_ENTRY) |
duke@435 | 2052 | |
duke@435 | 2053 | VM_INT_CONSTANTS_PARNEW(GENERATE_VM_INT_CONSTANT_ENTRY) |
duke@435 | 2054 | #endif // SERIALGC |
duke@435 | 2055 | |
duke@435 | 2056 | VM_INT_CONSTANTS_CPU(GENERATE_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2057 | GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2058 | GENERATE_C1_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2059 | GENERATE_C2_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2060 | GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2061 | GENERATE_VM_INT_CONSTANT_LAST_ENTRY) |
duke@435 | 2062 | |
duke@435 | 2063 | VM_INT_CONSTANTS_OS_CPU(GENERATE_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2064 | GENERATE_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2065 | GENERATE_C1_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2066 | GENERATE_C2_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2067 | GENERATE_C2_PREPROCESSOR_VM_INT_CONSTANT_ENTRY, |
duke@435 | 2068 | GENERATE_VM_INT_CONSTANT_LAST_ENTRY) |
duke@435 | 2069 | }; |
duke@435 | 2070 | |
duke@435 | 2071 | VMLongConstantEntry VMStructs::localHotSpotVMLongConstants[] = { |
duke@435 | 2072 | |
duke@435 | 2073 | VM_LONG_CONSTANTS(GENERATE_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2074 | GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2075 | GENERATE_C1_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2076 | GENERATE_C2_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2077 | GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2078 | GENERATE_VM_LONG_CONSTANT_LAST_ENTRY) |
duke@435 | 2079 | |
duke@435 | 2080 | VM_LONG_CONSTANTS_CPU(GENERATE_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2081 | GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2082 | GENERATE_C1_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2083 | GENERATE_C2_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2084 | GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2085 | GENERATE_VM_LONG_CONSTANT_LAST_ENTRY) |
duke@435 | 2086 | |
duke@435 | 2087 | VM_LONG_CONSTANTS_OS_CPU(GENERATE_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2088 | GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2089 | GENERATE_C1_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2090 | GENERATE_C2_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2091 | GENERATE_C2_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY, |
duke@435 | 2092 | GENERATE_VM_LONG_CONSTANT_LAST_ENTRY) |
duke@435 | 2093 | }; |
duke@435 | 2094 | |
duke@435 | 2095 | // This is used both to check the types of referenced fields and, in |
duke@435 | 2096 | // debug builds, to ensure that all of the field types are present. |
duke@435 | 2097 | void |
duke@435 | 2098 | VMStructs::init() { |
duke@435 | 2099 | VM_STRUCTS(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2100 | CHECK_STATIC_VM_STRUCT_ENTRY, |
duke@435 | 2101 | CHECK_NO_OP, |
duke@435 | 2102 | CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2103 | CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2104 | CHECK_C1_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2105 | CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2106 | CHECK_NO_OP, |
duke@435 | 2107 | CHECK_NO_OP, |
duke@435 | 2108 | CHECK_SENTINEL); |
duke@435 | 2109 | |
duke@435 | 2110 | #ifndef SERIALGC |
duke@435 | 2111 | VM_STRUCTS_PARALLELGC(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2112 | CHECK_STATIC_VM_STRUCT_ENTRY); |
duke@435 | 2113 | |
duke@435 | 2114 | VM_STRUCTS_CMS(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
coleenp@622 | 2115 | CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2116 | CHECK_STATIC_VM_STRUCT_ENTRY); |
duke@435 | 2117 | #endif // SERIALGC |
duke@435 | 2118 | |
duke@435 | 2119 | VM_STRUCTS_CPU(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2120 | CHECK_STATIC_VM_STRUCT_ENTRY, |
duke@435 | 2121 | CHECK_NO_OP, |
duke@435 | 2122 | CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2123 | CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2124 | CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2125 | CHECK_NO_OP, |
duke@435 | 2126 | CHECK_NO_OP, |
duke@435 | 2127 | CHECK_SENTINEL); |
duke@435 | 2128 | |
duke@435 | 2129 | VM_STRUCTS_OS_CPU(CHECK_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2130 | CHECK_STATIC_VM_STRUCT_ENTRY, |
duke@435 | 2131 | CHECK_NO_OP, |
duke@435 | 2132 | CHECK_VOLATILE_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2133 | CHECK_NONPRODUCT_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2134 | CHECK_C2_NONSTATIC_VM_STRUCT_ENTRY, |
duke@435 | 2135 | CHECK_NO_OP, |
duke@435 | 2136 | CHECK_NO_OP, |
duke@435 | 2137 | CHECK_SENTINEL); |
duke@435 | 2138 | |
duke@435 | 2139 | VM_TYPES(CHECK_VM_TYPE_ENTRY, |
duke@435 | 2140 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2141 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2142 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2143 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2144 | CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2145 | CHECK_C2_VM_TYPE_ENTRY, |
duke@435 | 2146 | CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2147 | CHECK_SENTINEL); |
duke@435 | 2148 | |
duke@435 | 2149 | #ifndef SERIALGC |
duke@435 | 2150 | VM_TYPES_PARALLELGC(CHECK_VM_TYPE_ENTRY, |
duke@435 | 2151 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP); |
duke@435 | 2152 | |
duke@435 | 2153 | VM_TYPES_CMS(CHECK_VM_TYPE_ENTRY, |
duke@435 | 2154 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP); |
duke@435 | 2155 | |
duke@435 | 2156 | VM_TYPES_PARNEW(CHECK_VM_TYPE_ENTRY) |
duke@435 | 2157 | #endif // SERIALGC |
duke@435 | 2158 | |
duke@435 | 2159 | VM_TYPES_CPU(CHECK_VM_TYPE_ENTRY, |
duke@435 | 2160 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2161 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2162 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2163 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2164 | CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2165 | CHECK_C2_VM_TYPE_ENTRY, |
duke@435 | 2166 | CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2167 | CHECK_SENTINEL); |
duke@435 | 2168 | |
duke@435 | 2169 | VM_TYPES_OS_CPU(CHECK_VM_TYPE_ENTRY, |
duke@435 | 2170 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2171 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2172 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2173 | CHECK_SINGLE_ARG_VM_TYPE_NO_OP, |
duke@435 | 2174 | CHECK_C1_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2175 | CHECK_C2_VM_TYPE_ENTRY, |
duke@435 | 2176 | CHECK_C2_TOPLEVEL_VM_TYPE_ENTRY, |
duke@435 | 2177 | CHECK_SENTINEL); |
duke@435 | 2178 | |
duke@435 | 2179 | // |
duke@435 | 2180 | // Split VM_STRUCTS() invocation into two parts to allow MS VC++ 6.0 |
duke@435 | 2181 | // to build with the source mounted over SNC3.2. Symptom was that |
duke@435 | 2182 | // debug build failed with an internal compiler error. Has been seen |
duke@435 | 2183 | // mounting sources from Solaris 2.6 and 2.7 hosts, but so far not |
duke@435 | 2184 | // 2.8 hosts. Appears to occur because line is too long. |
duke@435 | 2185 | // |
duke@435 | 2186 | // If an assertion failure is triggered here it means that an entry |
duke@435 | 2187 | // in VMStructs::localHotSpotVMStructs[] was not found in |
duke@435 | 2188 | // VMStructs::localHotSpotVMTypes[]. (The assertion itself had to be |
duke@435 | 2189 | // made less descriptive because of this above bug -- see the |
duke@435 | 2190 | // definition of ENSURE_FIELD_TYPE_PRESENT.) |
duke@435 | 2191 | // |
duke@435 | 2192 | // NOTE: taken out because this was just not working on everyone's |
duke@435 | 2193 | // Solstice NFS setup. If everyone switches to local workspaces on |
duke@435 | 2194 | // Win32, we can put this back in. |
duke@435 | 2195 | #ifndef _WINDOWS |
duke@435 | 2196 | debug_only(VM_STRUCTS(ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2197 | CHECK_NO_OP, \ |
duke@435 | 2198 | CHECK_NO_OP, \ |
duke@435 | 2199 | CHECK_NO_OP, \ |
duke@435 | 2200 | CHECK_NO_OP, \ |
duke@435 | 2201 | CHECK_NO_OP, \ |
duke@435 | 2202 | CHECK_NO_OP, \ |
duke@435 | 2203 | CHECK_NO_OP, \ |
duke@435 | 2204 | CHECK_NO_OP, \ |
duke@435 | 2205 | CHECK_SENTINEL)); |
duke@435 | 2206 | debug_only(VM_STRUCTS(CHECK_NO_OP, \ |
duke@435 | 2207 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2208 | CHECK_NO_OP, \ |
duke@435 | 2209 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2210 | ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT, \ |
duke@435 | 2211 | ENSURE_C1_FIELD_TYPE_PRESENT, \ |
duke@435 | 2212 | ENSURE_C2_FIELD_TYPE_PRESENT, \ |
duke@435 | 2213 | CHECK_NO_OP, \ |
duke@435 | 2214 | CHECK_NO_OP, \ |
duke@435 | 2215 | CHECK_SENTINEL)); |
duke@435 | 2216 | #ifndef SERIALGC |
duke@435 | 2217 | debug_only(VM_STRUCTS_PARALLELGC(ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2218 | ENSURE_FIELD_TYPE_PRESENT)); |
duke@435 | 2219 | debug_only(VM_STRUCTS_CMS(ENSURE_FIELD_TYPE_PRESENT, \ |
coleenp@622 | 2220 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2221 | ENSURE_FIELD_TYPE_PRESENT)); |
duke@435 | 2222 | #endif // SERIALGC |
duke@435 | 2223 | debug_only(VM_STRUCTS_CPU(ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2224 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2225 | CHECK_NO_OP, \ |
duke@435 | 2226 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2227 | ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT, \ |
duke@435 | 2228 | ENSURE_C2_FIELD_TYPE_PRESENT, \ |
duke@435 | 2229 | CHECK_NO_OP, \ |
duke@435 | 2230 | CHECK_NO_OP, \ |
duke@435 | 2231 | CHECK_SENTINEL)); |
duke@435 | 2232 | debug_only(VM_STRUCTS_OS_CPU(ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2233 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2234 | CHECK_NO_OP, \ |
duke@435 | 2235 | ENSURE_FIELD_TYPE_PRESENT, \ |
duke@435 | 2236 | ENSURE_NONPRODUCT_FIELD_TYPE_PRESENT, \ |
duke@435 | 2237 | ENSURE_C2_FIELD_TYPE_PRESENT, \ |
duke@435 | 2238 | CHECK_NO_OP, \ |
duke@435 | 2239 | CHECK_NO_OP, \ |
duke@435 | 2240 | CHECK_SENTINEL)); |
duke@435 | 2241 | #endif |
duke@435 | 2242 | } |
duke@435 | 2243 | |
duke@435 | 2244 | extern "C" { |
duke@435 | 2245 | |
duke@435 | 2246 | // see comments on cast_uint64_t at the top of this file |
duke@435 | 2247 | #define ASSIGN_CONST_TO_64BIT_VAR(var, expr) \ |
duke@435 | 2248 | JNIEXPORT uint64_t var = cast_uint64_t(expr); |
duke@435 | 2249 | #define ASSIGN_OFFSET_TO_64BIT_VAR(var, type, field) \ |
duke@435 | 2250 | ASSIGN_CONST_TO_64BIT_VAR(var, offset_of(type, field)) |
duke@435 | 2251 | #define ASSIGN_STRIDE_TO_64BIT_VAR(var, array) \ |
duke@435 | 2252 | ASSIGN_CONST_TO_64BIT_VAR(var, (char*)&array[1] - (char*)&array[0]) |
duke@435 | 2253 | |
duke@435 | 2254 | JNIEXPORT VMStructEntry* gHotSpotVMStructs = VMStructs::localHotSpotVMStructs; |
duke@435 | 2255 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryTypeNameOffset, VMStructEntry, typeName); |
duke@435 | 2256 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryFieldNameOffset, VMStructEntry, fieldName); |
duke@435 | 2257 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryTypeStringOffset, VMStructEntry, typeString); |
duke@435 | 2258 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryIsStaticOffset, VMStructEntry, isStatic); |
duke@435 | 2259 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryOffsetOffset, VMStructEntry, offset); |
duke@435 | 2260 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMStructEntryAddressOffset, VMStructEntry, address); |
duke@435 | 2261 | ASSIGN_STRIDE_TO_64BIT_VAR(gHotSpotVMStructEntryArrayStride, gHotSpotVMStructs); |
duke@435 | 2262 | JNIEXPORT VMTypeEntry* gHotSpotVMTypes = VMStructs::localHotSpotVMTypes; |
duke@435 | 2263 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntryTypeNameOffset, VMTypeEntry, typeName); |
duke@435 | 2264 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntrySuperclassNameOffset, VMTypeEntry, superclassName); |
duke@435 | 2265 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntryIsOopTypeOffset, VMTypeEntry, isOopType); |
duke@435 | 2266 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntryIsIntegerTypeOffset, VMTypeEntry, isIntegerType); |
duke@435 | 2267 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntryIsUnsignedOffset, VMTypeEntry, isUnsigned); |
duke@435 | 2268 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMTypeEntrySizeOffset, VMTypeEntry, size); |
duke@435 | 2269 | ASSIGN_STRIDE_TO_64BIT_VAR(gHotSpotVMTypeEntryArrayStride,gHotSpotVMTypes); |
duke@435 | 2270 | JNIEXPORT VMIntConstantEntry* gHotSpotVMIntConstants = VMStructs::localHotSpotVMIntConstants; |
duke@435 | 2271 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMIntConstantEntryNameOffset, VMIntConstantEntry, name); |
duke@435 | 2272 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMIntConstantEntryValueOffset, VMIntConstantEntry, value); |
duke@435 | 2273 | ASSIGN_STRIDE_TO_64BIT_VAR(gHotSpotVMIntConstantEntryArrayStride, gHotSpotVMIntConstants); |
duke@435 | 2274 | JNIEXPORT VMLongConstantEntry* gHotSpotVMLongConstants = VMStructs::localHotSpotVMLongConstants; |
duke@435 | 2275 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMLongConstantEntryNameOffset, VMLongConstantEntry, name); |
duke@435 | 2276 | ASSIGN_OFFSET_TO_64BIT_VAR(gHotSpotVMLongConstantEntryValueOffset, VMLongConstantEntry, value); |
duke@435 | 2277 | ASSIGN_STRIDE_TO_64BIT_VAR(gHotSpotVMLongConstantEntryArrayStride, gHotSpotVMLongConstants); |
duke@435 | 2278 | } |
duke@435 | 2279 | |
duke@435 | 2280 | #ifdef ASSERT |
duke@435 | 2281 | int |
duke@435 | 2282 | VMStructs::findType(const char* typeName) { |
duke@435 | 2283 | VMTypeEntry* types = gHotSpotVMTypes; |
duke@435 | 2284 | |
duke@435 | 2285 | while (types->typeName != NULL) { |
duke@435 | 2286 | if (!strcmp(typeName, types->typeName)) { |
duke@435 | 2287 | return 1; |
duke@435 | 2288 | } |
duke@435 | 2289 | ++types; |
duke@435 | 2290 | } |
duke@435 | 2291 | return 0; |
duke@435 | 2292 | } |
duke@435 | 2293 | #endif |
duke@435 | 2294 | |
duke@435 | 2295 | void vmStructs_init() { |
duke@435 | 2296 | debug_only(VMStructs::init()); |
duke@435 | 2297 | } |