113 f(mtInternal, "Internal") /* memory used by VM, but does not belong to */ \
114 /* any of above categories, and not used by */ \
115 /* NMT */ \
116 f(mtOther, "Other") /* memory not used by VM */ \
117 f(mtSymbol, "Symbol") \
118 f(mtNMT, "Native Memory Tracking") /* memory used by NMT */ \
119 f(mtClassShared, "Shared class space") /* class data sharing */ \
120 f(mtChunk, "Arena Chunk") /* chunk that holds content of arenas */ \
121 f(mtTest, "Test") /* Test type for verifying NMT */ \
122 f(mtTracing, "Tracing") \
123 f(mtLogging, "Logging") \
124 f(mtStatistics, "Statistics") \
125 f(mtArguments, "Arguments") \
126 f(mtModule, "Module") \
127 f(mtSafepoint, "Safepoint") \
128 f(mtSynchronizer, "Synchronization") \
129 f(mtServiceability, "Serviceability") \
130 f(mtMetaspace, "Metaspace") \
131 f(mtStringDedup, "String Deduplication") \
132 f(mtObjectMonitor, "Object Monitors") \
133 f(mtNone, "Unknown") \
134 //end
135
136 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
137 type,
138
139 /*
140 * Memory types
141 */
142 enum class MEMFLAGS : uint8_t {
143 MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)
144 mt_number_of_types // number of memory types (mtDontTrack
145 // is not included as validate type)
146 };
147 // Extra insurance that MEMFLAGS truly has the same size as uint8_t.
148 STATIC_ASSERT(sizeof(MEMFLAGS) == sizeof(uint8_t));
149
150 #define MEMORY_TYPE_SHORTNAME(type, human_readable) \
151 constexpr MEMFLAGS type = MEMFLAGS::type;
152
|
113 f(mtInternal, "Internal") /* memory used by VM, but does not belong to */ \
114 /* any of above categories, and not used by */ \
115 /* NMT */ \
116 f(mtOther, "Other") /* memory not used by VM */ \
117 f(mtSymbol, "Symbol") \
118 f(mtNMT, "Native Memory Tracking") /* memory used by NMT */ \
119 f(mtClassShared, "Shared class space") /* class data sharing */ \
120 f(mtChunk, "Arena Chunk") /* chunk that holds content of arenas */ \
121 f(mtTest, "Test") /* Test type for verifying NMT */ \
122 f(mtTracing, "Tracing") \
123 f(mtLogging, "Logging") \
124 f(mtStatistics, "Statistics") \
125 f(mtArguments, "Arguments") \
126 f(mtModule, "Module") \
127 f(mtSafepoint, "Safepoint") \
128 f(mtSynchronizer, "Synchronization") \
129 f(mtServiceability, "Serviceability") \
130 f(mtMetaspace, "Metaspace") \
131 f(mtStringDedup, "String Deduplication") \
132 f(mtObjectMonitor, "Object Monitors") \
133 f(mtOMWorld, "OM World") \
134 f(mtNone, "Unknown") \
135 //end
136
137 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
138 type,
139
140 /*
141 * Memory types
142 */
143 enum class MEMFLAGS : uint8_t {
144 MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)
145 mt_number_of_types // number of memory types (mtDontTrack
146 // is not included as validate type)
147 };
148 // Extra insurance that MEMFLAGS truly has the same size as uint8_t.
149 STATIC_ASSERT(sizeof(MEMFLAGS) == sizeof(uint8_t));
150
151 #define MEMORY_TYPE_SHORTNAME(type, human_readable) \
152 constexpr MEMFLAGS type = MEMFLAGS::type;
153
|