mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8226757: Shenandoah: Make traversal and passive modes explicit
Reviewed-by: shade
This commit is contained in:
parent
ba3ba19536
commit
d4afa4e1c8
58 changed files with 588 additions and 326 deletions
|
@ -225,7 +225,7 @@ template <typename ITR>
|
|||
void ShenandoahRootScanner<ITR>::roots_do(uint worker_id, OopClosure* oops, CLDClosure* clds, CodeBlobClosure* code, ThreadClosure *tc) {
|
||||
assert(!ShenandoahSafepoint::is_at_shenandoah_safepoint() ||
|
||||
!ShenandoahHeap::heap()->unload_classes() ||
|
||||
ShenandoahHeap::heap()->heuristics()->can_do_traversal_gc(),
|
||||
ShenandoahHeap::heap()->is_traversal_mode(),
|
||||
"Expect class unloading or traversal when Shenandoah cycle is running");
|
||||
ShenandoahParallelOopsDoThreadClosure tc_cl(oops, code, tc);
|
||||
ResourceMark rm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue