< prev index next >

src/hotspot/share/memory/allocation.hpp

Print this page

140   f(mtLogging,        "Logging")                                                     \
141   f(mtStatistics,     "Statistics")                                                  \
142   f(mtArguments,      "Arguments")                                                   \
143   f(mtModule,         "Module")                                                      \
144   f(mtSafepoint,      "Safepoint")                                                   \
145   f(mtSynchronizer,   "Synchronization")                                             \
146   f(mtServiceability, "Serviceability")                                              \
147   f(mtMetaspace,      "Metaspace")                                                   \
148   f(mtStringDedup,    "String Deduplication")                                        \
149   f(mtNone,           "Unknown")                                                     \
150   //end
151 
152 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
153   type,
154 
155 /*
156  * Memory types
157  */
158 enum class MEMFLAGS {
159   MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)

160   mt_number_of_types   // number of memory types (mtDontTrack
161                        // is not included as validate type)
162 };
163 
164 #define MEMORY_TYPE_SHORTNAME(type, human_readable) \
165   constexpr MEMFLAGS type = MEMFLAGS::type;
166 
167 // Generate short aliases for the enum values. E.g. mtGC instead of MEMFLAGS::mtGC.
168 MEMORY_TYPES_DO(MEMORY_TYPE_SHORTNAME)
169 
170 // Make an int version of the sentinel end value.
171 constexpr int mt_number_of_types = static_cast<int>(MEMFLAGS::mt_number_of_types);
172 
173 #if INCLUDE_NMT
174 
175 extern bool NMT_track_callsite;
176 
177 #else
178 
179 const bool NMT_track_callsite = false;

140   f(mtLogging,        "Logging")                                                     \
141   f(mtStatistics,     "Statistics")                                                  \
142   f(mtArguments,      "Arguments")                                                   \
143   f(mtModule,         "Module")                                                      \
144   f(mtSafepoint,      "Safepoint")                                                   \
145   f(mtSynchronizer,   "Synchronization")                                             \
146   f(mtServiceability, "Serviceability")                                              \
147   f(mtMetaspace,      "Metaspace")                                                   \
148   f(mtStringDedup,    "String Deduplication")                                        \
149   f(mtNone,           "Unknown")                                                     \
150   //end
151 
152 #define MEMORY_TYPE_DECLARE_ENUM(type, human_readable) \
153   type,
154 
155 /*
156  * Memory types
157  */
158 enum class MEMFLAGS {
159   MEMORY_TYPES_DO(MEMORY_TYPE_DECLARE_ENUM)
160   mtValueTypes,        // memory for buffered value types
161   mt_number_of_types   // number of memory types (mtDontTrack
162                        // is not included as validate type)
163 };
164 
165 #define MEMORY_TYPE_SHORTNAME(type, human_readable) \
166   constexpr MEMFLAGS type = MEMFLAGS::type;
167 
168 // Generate short aliases for the enum values. E.g. mtGC instead of MEMFLAGS::mtGC.
169 MEMORY_TYPES_DO(MEMORY_TYPE_SHORTNAME)
170 
171 // Make an int version of the sentinel end value.
172 constexpr int mt_number_of_types = static_cast<int>(MEMFLAGS::mt_number_of_types);
173 
174 #if INCLUDE_NMT
175 
176 extern bool NMT_track_callsite;
177 
178 #else
179 
180 const bool NMT_track_callsite = false;
< prev index next >