< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahRootProcessor.inline.hpp

Print this page
rev 59439 : 8245825: Shenandoah: Remove diagnostic flag ShenandoahConcurrentScanCodeRoots

@@ -233,21 +233,12 @@
   _vm_roots.oops_do(oops, worker_id);
 
   assert(clds != NULL, "Only possible with CLD closure");
   _cld_roots.cld_do(clds, worker_id);
 
-  // With ShenandoahConcurrentScanCodeRoots, we avoid scanning the entire code cache here,
-  // and instead do that in concurrent phase under the relevant lock. This saves init mark
-  // pause time.
-  if (code != NULL && !ShenandoahConcurrentScanCodeRoots) {
-    _code_roots.code_blobs_do(code, worker_id);
-    ShenandoahParallelOopsDoThreadClosure tc_cl(oops, NULL, tc);
-    _thread_roots.threads_do(&tc_cl, worker_id);
-  } else {
     ShenandoahParallelOopsDoThreadClosure tc_cl(oops, code, tc);
     _thread_roots.threads_do(&tc_cl, worker_id);
-  }
 
   AlwaysTrueClosure always_true;
   _dedup_roots.oops_do(&always_true, oops, worker_id);
 }
 
< prev index next >