--- 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);
}