8222259: Shenandoah: Pre-evacuate string-dedup roots in Traversal GC
Reviewed-by: shade
--- 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);
+ }
}
}
};