313 }
314
315 void print_address_on(outputStream* st) const; // nonvirtual address printing
316
317
318 #define METASPACE_OBJ_TYPES_DO(f) \
319 f(Class) \
320 f(Symbol) \
321 f(TypeArrayU1) \
322 f(TypeArrayU2) \
323 f(TypeArrayU4) \
324 f(TypeArrayU8) \
325 f(TypeArrayOther) \
326 f(Method) \
327 f(ConstMethod) \
328 f(MethodData) \
329 f(ConstantPool) \
330 f(ConstantPoolCache) \
331 f(Annotations) \
332 f(MethodCounters) \
333 f(RecordComponent) \
334 f(KlassTrainingData) \
335 f(MethodTrainingData) \
336 f(CompileTrainingData) \
337 f(AdapterHandlerEntry) \
338 f(AdapterFingerPrint)
339
340 #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
341 #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;
342
343 enum Type {
344 // Types are MetaspaceObj::ClassType, MetaspaceObj::SymbolType, etc
345 METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_DECLARE)
346 _number_of_types
347 };
348
349 static const char * type_name(Type type) {
350 switch(type) {
351 METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_NAME_CASE)
352 default:
|
313 }
314
315 void print_address_on(outputStream* st) const; // nonvirtual address printing
316
317
318 #define METASPACE_OBJ_TYPES_DO(f) \
319 f(Class) \
320 f(Symbol) \
321 f(TypeArrayU1) \
322 f(TypeArrayU2) \
323 f(TypeArrayU4) \
324 f(TypeArrayU8) \
325 f(TypeArrayOther) \
326 f(Method) \
327 f(ConstMethod) \
328 f(MethodData) \
329 f(ConstantPool) \
330 f(ConstantPoolCache) \
331 f(Annotations) \
332 f(MethodCounters) \
333 f(InlineLayoutInfo) \
334 f(RecordComponent) \
335 f(KlassTrainingData) \
336 f(MethodTrainingData) \
337 f(CompileTrainingData) \
338 f(AdapterHandlerEntry) \
339 f(AdapterFingerPrint)
340
341 #define METASPACE_OBJ_TYPE_DECLARE(name) name ## Type,
342 #define METASPACE_OBJ_TYPE_NAME_CASE(name) case name ## Type: return #name;
343
344 enum Type {
345 // Types are MetaspaceObj::ClassType, MetaspaceObj::SymbolType, etc
346 METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_DECLARE)
347 _number_of_types
348 };
349
350 static const char * type_name(Type type) {
351 switch(type) {
352 METASPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_NAME_CASE)
353 default:
|