hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 17109 90e6c31bbbe4
parent 17105 25b392a7740d
child 17112 e49af4ba7755
--- 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();