8226586: Shenandoah: No need to pre-evacuate roots for degenerated GC
authorzgu
Mon, 24 Jun 2019 09:51:45 -0400
changeset 55473 c9e362aef472
parent 55472 72bbc930d7b6
child 55474 73250862f818
8226586: Shenandoah: No need to pre-evacuate roots for degenerated GC Reviewed-by: rkennke
src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Sat Jun 22 02:03:41 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp	Mon Jun 24 09:51:45 2019 -0400
@@ -1513,7 +1513,9 @@
       // From here on, we need to update references.
       set_has_forwarded_objects(true);
 
-      evacuate_and_update_roots();
+      if (!is_degenerated_gc_in_progress()) {
+        evacuate_and_update_roots();
+      }
 
       if (ShenandoahPacing) {
         pacer()->setup_for_evac();