src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp
changeset 58266 501df37ce76b
parent 58177 4932dce35882
child 58543 a7a606f6311c
equal deleted inserted replaced
58265:577e17cab93f 58266:501df37ce76b
   592   if (!_heap->cancelled_gc() && _heap->process_references()) {
   592   if (!_heap->cancelled_gc() && _heap->process_references()) {
   593     weak_refs_work();
   593     weak_refs_work();
   594   }
   594   }
   595 
   595 
   596   if (!_heap->cancelled_gc()) {
   596   if (!_heap->cancelled_gc()) {
   597     fixup_roots();
       
   598     _heap->parallel_cleaning(false);
       
   599   }
       
   600 
       
   601   if (!_heap->cancelled_gc()) {
       
   602     assert(_task_queues->is_empty(), "queues must be empty after traversal GC");
   597     assert(_task_queues->is_empty(), "queues must be empty after traversal GC");
   603     TASKQUEUE_STATS_ONLY(_task_queues->print_taskqueue_stats());
   598     TASKQUEUE_STATS_ONLY(_task_queues->print_taskqueue_stats());
   604     TASKQUEUE_STATS_ONLY(_task_queues->reset_taskqueue_stats());
   599     TASKQUEUE_STATS_ONLY(_task_queues->reset_taskqueue_stats());
   605 
   600 
   606     // No more marking expected
   601     // No more marking expected
   607     _heap->mark_complete_marking_context();
   602     _heap->mark_complete_marking_context();
       
   603 
       
   604     fixup_roots();
       
   605     _heap->parallel_cleaning(false);
   608 
   606 
   609     // Resize metaspace
   607     // Resize metaspace
   610     MetaspaceGC::compute_new_size();
   608     MetaspaceGC::compute_new_size();
   611 
   609 
   612     // Still good? We can now trash the cset, and make final verification
   610     // Still good? We can now trash the cset, and make final verification