--- a/src/hotspot/share/services/memTracker.cpp Thu May 03 17:36:25 2018 -0700
+++ b/src/hotspot/share/services/memTracker.cpp Tue Apr 24 18:06:32 2018 +0200
@@ -177,10 +177,12 @@
} else {
MemDetailReporter rpt(baseline, output);
rpt.report();
-
+ output->print("Metaspace:");
// Metadata reporting requires a safepoint, so avoid it if VM is not in good state.
assert(!VMError::fatal_error_in_progress(), "Do not report metadata in error report");
- VM_PrintMetadata vmop(output, K);
+ VM_PrintMetadata vmop(output, K,
+ MetaspaceUtils::rf_show_loaders |
+ MetaspaceUtils::rf_break_down_by_spacetype);
VMThread::execute(&vmop);
}
}