src/hotspot/share/gc/g1/g1FullCollector.cpp
changeset 51405 8b23aa7cef47
parent 50297 580744d900c8
child 51497 ec014e5694ec
equal deleted inserted replaced
51404:c5461fe16efb 51405:8b23aa7cef47
   224     // Unload classes and purge the SystemDictionary.
   224     // Unload classes and purge the SystemDictionary.
   225     bool purged_class = SystemDictionary::do_unloading(scope()->timer());
   225     bool purged_class = SystemDictionary::do_unloading(scope()->timer());
   226     _heap->complete_cleaning(&_is_alive, purged_class);
   226     _heap->complete_cleaning(&_is_alive, purged_class);
   227   } else {
   227   } else {
   228     GCTraceTime(Debug, gc, phases) debug("Phase 1: String and Symbol Tables Cleanup", scope()->timer());
   228     GCTraceTime(Debug, gc, phases) debug("Phase 1: String and Symbol Tables Cleanup", scope()->timer());
   229     // If no class unloading just clean out strings and symbols.
   229     // If no class unloading just clean out strings.
   230     _heap->partial_cleaning(&_is_alive, true, true, G1StringDedup::is_enabled());
   230     _heap->partial_cleaning(&_is_alive, true, G1StringDedup::is_enabled());
   231   }
   231   }
   232 
   232 
   233   scope()->tracer()->report_object_count_after_gc(&_is_alive);
   233   scope()->tracer()->report_object_count_after_gc(&_is_alive);
   234 }
   234 }
   235 
   235