8014546: MetaspaceAux print_metaspace_change() should print "used" after GC not capacity
Reviewed-by: johnc, tschatzl
--- 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);
}