Skip to content
Permalink
Browse files
8263433: Shenandoah: Don't expect forwarded objects in set_concurrent…
…_mark_in_progress()

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed Mar 11, 2021
1 parent 15dacca commit b92abac2627d523c527326adebbcc788e7a71fac
Showing 1 changed file with 2 additions and 5 deletions.
@@ -1696,11 +1696,8 @@ void ShenandoahHeap::set_gc_state_mask(uint mask, bool value) {
}

void ShenandoahHeap::set_concurrent_mark_in_progress(bool in_progress) {
if (has_forwarded_objects()) {
set_gc_state_mask(MARKING | UPDATEREFS, in_progress);
} else {
set_gc_state_mask(MARKING, in_progress);
}
assert(!has_forwarded_objects(), "Not expected before/after mark phase");
set_gc_state_mask(MARKING, in_progress);
ShenandoahBarrierSet::satb_mark_queue_set().set_active_all_threads(in_progress, !in_progress);
}

0 comments on commit b92abac

Please sign in to comment.