< prev index next >
src/hotspot/share/memory/dumpAllocStats.hpp
Print this page
@@ -37,10 +37,11 @@
METASPACE_OBJ_TYPES_DO(f) \
f(SymbolHashentry) \
f(SymbolBucket) \
f(StringHashentry) \
f(StringBucket) \
+ f(ModulesNatives) \
f(Other)
enum Type {
// Types are MetaspaceObj::ClassType, MetaspaceObj::SymbolType, etc
SHAREDSPACE_OBJ_TYPES_DO(METASPACE_OBJ_TYPE_DECLARE)
@@ -72,10 +73,15 @@
int which = (read_only) ? RO : RW;
_counts[which][type] ++;
_bytes [which][type] += byte_size;
}
+ void record_modules(int byte_size, bool read_only) {
+ int which = (read_only) ? RO : RW;
+ _bytes [which][ModulesNativesType] += byte_size;
+ }
+
void record_other_type(int byte_size, bool read_only) {
int which = (read_only) ? RO : RW;
_bytes [which][OtherType] += byte_size;
}
void print_stats(int ro_all, int rw_all, int mc_all);
< prev index next >