8014546: MetaspaceAux print_metaspace_change() should print "used" after GC not capacity
authorjmasa
Tue, 25 Jun 2013 09:58:26 -0700
changeset 18442 b9d7f080cda4
parent 18441 1f6241296fda
child 18443 ca4b3427b7c7
8014546: MetaspaceAux print_metaspace_change() should print "used" after GC not capacity Reviewed-by: johnc, tschatzl
hotspot/src/share/vm/memory/metaspace.cpp
--- a/hotspot/src/share/vm/memory/metaspace.cpp	Fri Jun 07 09:46:58 2013 -0700
+++ b/hotspot/src/share/vm/memory/metaspace.cpp	Tue Jun 25 09:58:26 2013 -0700
@@ -2608,14 +2608,14 @@
                         "->" SIZE_FORMAT
                         "("  SIZE_FORMAT ")",
                         prev_metadata_used,
-                        allocated_capacity_bytes(),
+                        allocated_used_bytes(),
                         reserved_in_bytes());
   } else {
     gclog_or_tty->print(" "  SIZE_FORMAT "K"
                         "->" SIZE_FORMAT "K"
                         "("  SIZE_FORMAT "K)",
                         prev_metadata_used / K,
-                        allocated_capacity_bytes() / K,
+                        allocated_used_bytes() / K,
                         reserved_in_bytes()/ K);
   }