changeset 55332:af28daff6b98

8224179: Shenandoah: CTW test failures with traversal GC Reviewed-by: shade
author zgu
date Mon, 20 May 2019 09:43:46 -0400
parents 2d90a0988c95
children 2523496f5107
files src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Mon May 20 09:42:37 2019 -0400
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp	Mon May 20 09:43:46 2019 -0400
@@ -192,11 +192,7 @@
       ShenandoahMarkCLDClosure cld_cl(&roots_cl);
       MarkingCodeBlobClosure code_cl(&roots_cl, CodeBlobToOopClosure::FixRelocations);
       if (unload_classes) {
-        _rp->strong_roots_do(worker_id, &roots_cl);
-        // Need to pre-evac code roots here. Otherwise we might see from-space constants.
-        ShenandoahWorkerTimings* worker_times = _heap->phase_timings()->worker_times();
-        ShenandoahWorkerTimingsTracker timer(worker_times, ShenandoahPhaseTimings::CodeCacheRoots, worker_id);
-        _cset_coderoots->possibly_parallel_blobs_do(&code_cl);
+        _rp->roots_do(worker_id, &roots_cl, NULL, &code_cl);
       } else {
         _rp->roots_do(worker_id, &roots_cl, &cld_cl, &code_cl);
       }