< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page

297   }
298 
299   static void* shared_metaspace_base() { return _shared_metaspace_base; }
300   static void* shared_metaspace_top()  { return _shared_metaspace_top;  }
301 
302 #define METASPACE_OBJ_TYPES_DO(f) \
303   f(Class) \
304   f(Symbol) \
305   f(TypeArrayU1) \
306   f(TypeArrayU2) \
307   f(TypeArrayU4) \
308   f(TypeArrayU8) \
309   f(TypeArrayOther) \
310   f(Method) \
311   f(ConstMethod) \
312   f(MethodData) \
313   f(ConstantPool) \
314   f(ConstantPoolCache) \
315   f(Annotations) \
316   f(MethodCounters) \

317   f(RecordComponent) \
318   f(KlassTrainingData) \
319   f(MethodTrainingData) \
320   f(CompileTrainingData) \
321   f(AdapterHandlerEntry) \
322   f(AdapterFingerPrint)
323 
324 #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
325 #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;
326 
327   enum Type {
328     // Types are MetaspaceObj::ClassType, MetaspaceObj::SymbolType, etc
329     METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_DECLARE)
330     _number_of_types
331   };
332 
333   static const char * type_name(Type type) {
334     switch(type) {
335     METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_NAME_CASE)
336     default:

297   }
298 
299   static void* shared_metaspace_base() { return _shared_metaspace_base; }
300   static void* shared_metaspace_top()  { return _shared_metaspace_top;  }
301 
302 #define METASPACE_OBJ_TYPES_DO(f) \
303   f(Class) \
304   f(Symbol) \
305   f(TypeArrayU1) \
306   f(TypeArrayU2) \
307   f(TypeArrayU4) \
308   f(TypeArrayU8) \
309   f(TypeArrayOther) \
310   f(Method) \
311   f(ConstMethod) \
312   f(MethodData) \
313   f(ConstantPool) \
314   f(ConstantPoolCache) \
315   f(Annotations) \
316   f(MethodCounters) \
317   f(InlineLayoutInfo) \
318   f(RecordComponent) \
319   f(KlassTrainingData) \
320   f(MethodTrainingData) \
321   f(CompileTrainingData) \
322   f(AdapterHandlerEntry) \
323   f(AdapterFingerPrint)
324 
325 #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
326 #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;
327 
328   enum Type {
329     // Types are MetaspaceObj::ClassType, MetaspaceObj::SymbolType, etc
330     METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_DECLARE)
331     _number_of_types
332   };
333 
334   static const char * type_name(Type type) {
335     switch(type) {
336     METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_NAME_CASE)
337     default:
< prev index next >