8222259: Shenandoah: Pre-evacuate string-dedup roots in Traversal GC
authorrkennke
Wed, 10 Apr 2019 13:21:38 +0200
changeset 54489 a84fefde0543
parent 54488 25199b48f34f
child 54490 bf07e140c49c
8222259: Shenandoah: Pre-evacuate string-dedup roots in Traversal GC Reviewed-by: shade
src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Wed Apr 10 12:45:32 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Wed Apr 10 13:21:38 2019 +0200
@@ -196,6 +196,10 @@
       } else {
         _rp->process_all_roots(&roots_cl, &cld_cl, &code_cl, NULL, worker_id);
       }
+      if (ShenandoahStringDedup::is_enabled()) {
+        AlwaysTrueClosure is_alive;
+        ShenandoahStringDedup::parallel_oops_do(&is_alive, &roots_cl, worker_id);
+      }
     }
   }
 };