Skip to content

Commit d295143

Browse files
author
duke
committed
Backport e51e40c
1 parent c326ff1 commit d295143

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hotspot/share/gc/shenandoah/shenandoahConcurrentGC.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,11 @@ void ShenandoahConcurrentGC::op_init_updaterefs() {
921921
heap->set_evacuation_in_progress(false);
922922
heap->set_concurrent_weak_root_in_progress(false);
923923
heap->prepare_update_heap_references(true /*concurrent*/);
924-
heap->set_update_refs_in_progress(true);
924+
if (ShenandoahVerify) {
925+
heap->verifier()->verify_before_updaterefs();
926+
}
925927

928+
heap->set_update_refs_in_progress(true);
926929
if (ShenandoahPacing) {
927930
heap->pacer()->setup_for_updaterefs();
928931
}

0 commit comments

Comments
 (0)