changeset 54489:a84fefde0543

8222259: Shenandoah: Pre-evacuate string-dedup roots in Traversal GC Reviewed-by: shade
author rkennke
date Wed, 10 Apr 2019 13:21:38 +0200
parents 25199b48f34f
children bf07e140c49c
files src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
+      }
     }
   }
 };