--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp Thu Apr 18 10:09:23 2013 -0700
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp Tue Feb 12 14:15:45 2013 -0800
@@ -377,7 +377,7 @@
ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy());
- const size_t metadata_prev_used = MetaspaceAux::used_in_bytes();
+ const size_t metadata_prev_used = MetaspaceAux::allocated_used_bytes();
print_heap_before_gc();
@@ -556,6 +556,7 @@
if (complete) {
// Delete metaspaces for unloaded class loaders and clean up loader_data graph
ClassLoaderDataGraph::purge();
+ MetaspaceAux::verify_metrics();
// Resize the metaspace capacity after full collections
MetaspaceGC::compute_new_size();
update_full_collections_completed();