Skip to content

Commit

Permalink
Align gc state with verify_before_updaterefs expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
earthling-amzn committed Oct 16, 2024
1 parent 78873b9 commit 7721cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/gc/shenandoah/shenandoahConcurrentGC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,11 @@ void ShenandoahConcurrentGC::op_init_updaterefs() {
heap->set_evacuation_in_progress(false);
heap->set_concurrent_weak_root_in_progress(false);
heap->prepare_update_heap_references(true /*concurrent*/);
heap->set_update_refs_in_progress(true);
if (ShenandoahVerify) {
heap->verifier()->verify_before_updaterefs();
}

heap->set_update_refs_in_progress(true);
if (ShenandoahPacing) {
heap->pacer()->setup_for_updaterefs();
}
Expand Down

0 comments on commit 7721cda

Please sign in to comment.