src/hotspot/share/memory/metaspace.cpp
changeset 50309 37ebfe8bac7f
parent 50283 2f9811d99ba8
child 50372 7a013fbf6fc3
--- a/src/hotspot/share/memory/metaspace.cpp	Wed May 30 07:42:48 2018 -0700
+++ b/src/hotspot/share/memory/metaspace.cpp	Wed May 30 17:30:06 2018 +0200
@@ -601,11 +601,12 @@
 void MetaspaceUtils::print_report(outputStream* out, size_t scale, int flags) {
 
   const bool print_loaders = (flags & rf_show_loaders) > 0;
+  const bool print_classes = (flags & rf_show_classes) > 0;
   const bool print_by_chunktype = (flags & rf_break_down_by_chunktype) > 0;
   const bool print_by_spacetype = (flags & rf_break_down_by_spacetype) > 0;
 
   // Some report options require walking the class loader data graph.
-  PrintCLDMetaspaceInfoClosure cl(out, scale, print_loaders, print_by_chunktype);
+  PrintCLDMetaspaceInfoClosure cl(out, scale, print_loaders, print_classes, print_by_chunktype);
   if (print_loaders) {
     out->cr();
     out->print_cr("Usage per loader:");