< prev index next >

src/hotspot/share/runtime/vmStructs.cpp

Print this page




  51 #include "gc/serial/tenuredGeneration.hpp"
  52 #include "gc/cms/cmsHeap.hpp"
  53 #include "gc/shared/cardTableRS.hpp"
  54 #include "gc/shared/collectedHeap.hpp"
  55 #include "gc/shared/genCollectedHeap.hpp"
  56 #include "gc/shared/generation.hpp"
  57 #include "gc/shared/generationSpec.hpp"
  58 #include "gc/shared/oopStorage.hpp"
  59 #include "gc/shared/space.hpp"
  60 #include "interpreter/bytecodeInterpreter.hpp"
  61 #include "interpreter/bytecodes.hpp"
  62 #include "interpreter/interpreter.hpp"
  63 #include "memory/allocation.hpp"
  64 #include "memory/allocation.inline.hpp"
  65 #include "memory/heap.hpp"
  66 #include "memory/metachunk.hpp"
  67 #include "memory/padded.hpp"
  68 #include "memory/referenceType.hpp"
  69 #include "memory/universe.hpp"
  70 #include "memory/virtualspace.hpp"

  71 #include "oops/array.hpp"
  72 #include "oops/arrayKlass.hpp"
  73 #include "oops/arrayOop.hpp"
  74 #include "oops/compiledICHolder.hpp"
  75 #include "oops/constMethod.hpp"
  76 #include "oops/constantPool.hpp"
  77 #include "oops/cpCache.hpp"
  78 #include "oops/instanceClassLoaderKlass.hpp"
  79 #include "oops/instanceKlass.hpp"
  80 #include "oops/instanceMirrorKlass.hpp"
  81 #include "oops/instanceOop.hpp"
  82 #include "oops/klass.hpp"
  83 #include "oops/markOop.hpp"
  84 #include "oops/method.hpp"
  85 #include "oops/methodCounters.hpp"
  86 #include "oops/methodData.hpp"
  87 #include "oops/objArrayKlass.hpp"
  88 #include "oops/objArrayOop.hpp"
  89 #include "oops/oop.inline.hpp"
  90 #include "oops/oopHandle.hpp"


1213   /************/                                                                                                                     \
1214   /* Array<T> */                                                                                                                     \
1215   /************/                                                                                                                     \
1216                                                                                                                                      \
1217   nonstatic_field(Array<int>,                  _length,                                       int)                                   \
1218   unchecked_nonstatic_field(Array<int>,        _data,                                         sizeof(int))                           \
1219   unchecked_nonstatic_field(Array<u1>,         _data,                                         sizeof(u1))                            \
1220   unchecked_nonstatic_field(Array<u2>,         _data,                                         sizeof(u2))                            \
1221   unchecked_nonstatic_field(Array<Method*>,    _data,                                         sizeof(Method*))                       \
1222   unchecked_nonstatic_field(Array<Klass*>,     _data,                                         sizeof(Klass*))                        \
1223                                                                                                                                      \
1224   /*********************************/                                                                                                \
1225   /* java_lang_Class fields        */                                                                                                \
1226   /*********************************/                                                                                                \
1227                                                                                                                                      \
1228      static_field(java_lang_Class,             _klass_offset,                                 int)                                   \
1229      static_field(java_lang_Class,             _array_klass_offset,                           int)                                   \
1230      static_field(java_lang_Class,             _oop_size_offset,                              int)                                   \
1231      static_field(java_lang_Class,             _static_oop_field_count_offset,                int)                                   \
1232                                                                                                                                      \










1233   /******************/                                                                                                               \
1234   /* VMError fields */                                                                                                               \
1235   /******************/                                                                                                               \
1236                                                                                                                                      \
1237      static_field(VMError,                     _thread,                                       Thread*)                               \
1238                                                                                                                                      \
1239   /************************/                                                                                                         \
1240   /* Miscellaneous fields */                                                                                                         \
1241   /************************/                                                                                                         \
1242                                                                                                                                      \
1243   nonstatic_field(CompileTask,                 _method,                                       Method*)                               \
1244   nonstatic_field(CompileTask,                 _osr_bci,                                      int)                                   \
1245   nonstatic_field(CompileTask,                 _comp_level,                                   int)                                   \
1246   nonstatic_field(CompileTask,                 _compile_id,                                   uint)                                  \
1247   nonstatic_field(CompileTask,                 _num_inlined_bytecodes,                        int)                                   \
1248   nonstatic_field(CompileTask,                 _next,                                         CompileTask*)                          \
1249   nonstatic_field(CompileTask,                 _prev,                                         CompileTask*)                          \
1250                                                                                                                                      \
1251   nonstatic_field(vframeArray,                 _next,                                         vframeArray*)                          \
1252   nonstatic_field(vframeArray,                 _original,                                     frame)                                 \


2165   declare_toplevel_type(Mutex*)                                           \
2166   declare_toplevel_type(nmethod*)                                         \
2167   COMPILER2_PRESENT(declare_unsigned_integer_type(node_idx_t))            \
2168   declare_toplevel_type(ObjectMonitor*)                                   \
2169   declare_toplevel_type(PaddedObjectMonitor*)                             \
2170   declare_toplevel_type(oop*)                                             \
2171   declare_toplevel_type(OopMap**)                                         \
2172   declare_toplevel_type(OopMapCache*)                                     \
2173   declare_toplevel_type(OopMapSet*)                                       \
2174   declare_toplevel_type(VMReg)                                            \
2175   declare_toplevel_type(OSThread*)                                        \
2176    declare_integer_type(ReferenceType)                                    \
2177   declare_toplevel_type(StubQueue*)                                       \
2178   declare_toplevel_type(Thread*)                                          \
2179   declare_toplevel_type(Universe)                                         \
2180   declare_toplevel_type(os)                                               \
2181   declare_toplevel_type(vframeArray)                                      \
2182   declare_toplevel_type(vframeArrayElement)                               \
2183   declare_toplevel_type(Annotations*)                                     \
2184   declare_type(OopMapValue, StackObj)                                     \




2185                                                                           \
2186   /***************/                                                       \
2187   /* Miscellaneous types */                                               \
2188   /***************/                                                       \
2189                                                                           \
2190   /* freelist */                                                          \
2191   declare_toplevel_type(FreeChunk*)                                       \
2192   declare_toplevel_type(AdaptiveFreeList<FreeChunk>*)                     \
2193   declare_toplevel_type(AdaptiveFreeList<FreeChunk>)
2194 
2195 
2196 //--------------------------------------------------------------------------------
2197 // VM_INT_CONSTANTS
2198 //
2199 // This table contains integer constants required over in the
2200 // serviceability agent. The "declare_constant" macro is used for all
2201 // enums, etc., while "declare_preprocessor_constant" must be used for
2202 // all #defined constants.
2203 
2204 #define VM_INT_CONSTANTS(declare_constant,                                \




  51 #include "gc/serial/tenuredGeneration.hpp"
  52 #include "gc/cms/cmsHeap.hpp"
  53 #include "gc/shared/cardTableRS.hpp"
  54 #include "gc/shared/collectedHeap.hpp"
  55 #include "gc/shared/genCollectedHeap.hpp"
  56 #include "gc/shared/generation.hpp"
  57 #include "gc/shared/generationSpec.hpp"
  58 #include "gc/shared/oopStorage.hpp"
  59 #include "gc/shared/space.hpp"
  60 #include "interpreter/bytecodeInterpreter.hpp"
  61 #include "interpreter/bytecodes.hpp"
  62 #include "interpreter/interpreter.hpp"
  63 #include "memory/allocation.hpp"
  64 #include "memory/allocation.inline.hpp"
  65 #include "memory/heap.hpp"
  66 #include "memory/metachunk.hpp"
  67 #include "memory/padded.hpp"
  68 #include "memory/referenceType.hpp"
  69 #include "memory/universe.hpp"
  70 #include "memory/virtualspace.hpp"
  71 #include "memory/filemap.hpp"
  72 #include "oops/array.hpp"
  73 #include "oops/arrayKlass.hpp"
  74 #include "oops/arrayOop.hpp"
  75 #include "oops/compiledICHolder.hpp"
  76 #include "oops/constMethod.hpp"
  77 #include "oops/constantPool.hpp"
  78 #include "oops/cpCache.hpp"
  79 #include "oops/instanceClassLoaderKlass.hpp"
  80 #include "oops/instanceKlass.hpp"
  81 #include "oops/instanceMirrorKlass.hpp"
  82 #include "oops/instanceOop.hpp"
  83 #include "oops/klass.hpp"
  84 #include "oops/markOop.hpp"
  85 #include "oops/method.hpp"
  86 #include "oops/methodCounters.hpp"
  87 #include "oops/methodData.hpp"
  88 #include "oops/objArrayKlass.hpp"
  89 #include "oops/objArrayOop.hpp"
  90 #include "oops/oop.inline.hpp"
  91 #include "oops/oopHandle.hpp"


1214   /************/                                                                                                                     \
1215   /* Array<T> */                                                                                                                     \
1216   /************/                                                                                                                     \
1217                                                                                                                                      \
1218   nonstatic_field(Array<int>,                  _length,                                       int)                                   \
1219   unchecked_nonstatic_field(Array<int>,        _data,                                         sizeof(int))                           \
1220   unchecked_nonstatic_field(Array<u1>,         _data,                                         sizeof(u1))                            \
1221   unchecked_nonstatic_field(Array<u2>,         _data,                                         sizeof(u2))                            \
1222   unchecked_nonstatic_field(Array<Method*>,    _data,                                         sizeof(Method*))                       \
1223   unchecked_nonstatic_field(Array<Klass*>,     _data,                                         sizeof(Klass*))                        \
1224                                                                                                                                      \
1225   /*********************************/                                                                                                \
1226   /* java_lang_Class fields        */                                                                                                \
1227   /*********************************/                                                                                                \
1228                                                                                                                                      \
1229      static_field(java_lang_Class,             _klass_offset,                                 int)                                   \
1230      static_field(java_lang_Class,             _array_klass_offset,                           int)                                   \
1231      static_field(java_lang_Class,             _oop_size_offset,                              int)                                   \
1232      static_field(java_lang_Class,             _static_oop_field_count_offset,                int)                                   \
1233                                                                                                                                      \
1234   /********************************************/                                                                                     \
1235   /* FileMapInfo fields (CDS archive related) */                                                                                     \
1236   /********************************************/                                                                                     \
1237                                                                                                                                      \
1238   nonstatic_field(FileMapInfo,                 _header,                                       FileMapInfo::FileMapHeader*)           \
1239      static_field(FileMapInfo,                 _current_info,                                 FileMapInfo*)                          \
1240   nonstatic_field(FileMapInfo::FileMapHeader,  _space[0],                                     FileMapInfo::FileMapHeader::space_info)\
1241   nonstatic_field(FileMapInfo::FileMapHeader::space_info, _addr._base,                        char*)                                 \
1242   nonstatic_field(FileMapInfo::FileMapHeader::space_info, _used,                              size_t)                                \
1243                                                                                                                                      \
1244   /******************/                                                                                                               \
1245   /* VMError fields */                                                                                                               \
1246   /******************/                                                                                                               \
1247                                                                                                                                      \
1248      static_field(VMError,                     _thread,                                       Thread*)                               \
1249                                                                                                                                      \
1250   /************************/                                                                                                         \
1251   /* Miscellaneous fields */                                                                                                         \
1252   /************************/                                                                                                         \
1253                                                                                                                                      \
1254   nonstatic_field(CompileTask,                 _method,                                       Method*)                               \
1255   nonstatic_field(CompileTask,                 _osr_bci,                                      int)                                   \
1256   nonstatic_field(CompileTask,                 _comp_level,                                   int)                                   \
1257   nonstatic_field(CompileTask,                 _compile_id,                                   uint)                                  \
1258   nonstatic_field(CompileTask,                 _num_inlined_bytecodes,                        int)                                   \
1259   nonstatic_field(CompileTask,                 _next,                                         CompileTask*)                          \
1260   nonstatic_field(CompileTask,                 _prev,                                         CompileTask*)                          \
1261                                                                                                                                      \
1262   nonstatic_field(vframeArray,                 _next,                                         vframeArray*)                          \
1263   nonstatic_field(vframeArray,                 _original,                                     frame)                                 \


2176   declare_toplevel_type(Mutex*)                                           \
2177   declare_toplevel_type(nmethod*)                                         \
2178   COMPILER2_PRESENT(declare_unsigned_integer_type(node_idx_t))            \
2179   declare_toplevel_type(ObjectMonitor*)                                   \
2180   declare_toplevel_type(PaddedObjectMonitor*)                             \
2181   declare_toplevel_type(oop*)                                             \
2182   declare_toplevel_type(OopMap**)                                         \
2183   declare_toplevel_type(OopMapCache*)                                     \
2184   declare_toplevel_type(OopMapSet*)                                       \
2185   declare_toplevel_type(VMReg)                                            \
2186   declare_toplevel_type(OSThread*)                                        \
2187    declare_integer_type(ReferenceType)                                    \
2188   declare_toplevel_type(StubQueue*)                                       \
2189   declare_toplevel_type(Thread*)                                          \
2190   declare_toplevel_type(Universe)                                         \
2191   declare_toplevel_type(os)                                               \
2192   declare_toplevel_type(vframeArray)                                      \
2193   declare_toplevel_type(vframeArrayElement)                               \
2194   declare_toplevel_type(Annotations*)                                     \
2195   declare_type(OopMapValue, StackObj)                                     \
2196   declare_type(FileMapInfo, CHeapObj<mtInternal>)                         \
2197   declare_type(FileMapInfo::FileMapHeaderBase, CHeapObj<mtClass>)         \
2198   declare_type(FileMapInfo::FileMapHeader, FileMapInfo::FileMapHeaderBase)\
2199   declare_toplevel_type(FileMapInfo::FileMapHeader::space_info)           \
2200                                                                           \
2201   /***************/                                                       \
2202   /* Miscellaneous types */                                               \
2203   /***************/                                                       \
2204                                                                           \
2205   /* freelist */                                                          \
2206   declare_toplevel_type(FreeChunk*)                                       \
2207   declare_toplevel_type(AdaptiveFreeList<FreeChunk>*)                     \
2208   declare_toplevel_type(AdaptiveFreeList<FreeChunk>)
2209 
2210 
2211 //--------------------------------------------------------------------------------
2212 // VM_INT_CONSTANTS
2213 //
2214 // This table contains integer constants required over in the
2215 // serviceability agent. The "declare_constant" macro is used for all
2216 // enums, etc., while "declare_preprocessor_constant" must be used for
2217 // all #defined constants.
2218 
2219 #define VM_INT_CONSTANTS(declare_constant,                                \


< prev index next >