hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 17109 90e6c31bbbe4
parent 17105 25b392a7740d
child 17112 e49af4ba7755
equal deleted inserted replaced
17108:cf72dcf9a8f2 17109:90e6c31bbbe4
   375   const bool do_clear_all_soft_refs = clear_all_soft_refs ||
   375   const bool do_clear_all_soft_refs = clear_all_soft_refs ||
   376                           collector_policy()->should_clear_all_soft_refs();
   376                           collector_policy()->should_clear_all_soft_refs();
   377 
   377 
   378   ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy());
   378   ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy());
   379 
   379 
   380   const size_t metadata_prev_used = MetaspaceAux::used_in_bytes();
   380   const size_t metadata_prev_used = MetaspaceAux::allocated_used_bytes();
   381 
   381 
   382   print_heap_before_gc();
   382   print_heap_before_gc();
   383 
   383 
   384   {
   384   {
   385     FlagSetting fl(_is_gc_active, true);
   385     FlagSetting fl(_is_gc_active, true);
   554     }
   554     }
   555 
   555 
   556     if (complete) {
   556     if (complete) {
   557       // Delete metaspaces for unloaded class loaders and clean up loader_data graph
   557       // Delete metaspaces for unloaded class loaders and clean up loader_data graph
   558       ClassLoaderDataGraph::purge();
   558       ClassLoaderDataGraph::purge();
       
   559       MetaspaceAux::verify_metrics();
   559       // Resize the metaspace capacity after full collections
   560       // Resize the metaspace capacity after full collections
   560       MetaspaceGC::compute_new_size();
   561       MetaspaceGC::compute_new_size();
   561       update_full_collections_completed();
   562       update_full_collections_completed();
   562     }
   563     }
   563 
   564