Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8276201: Shenandoah: Race results degenerated GC to enter wrong entry…
… point

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed Nov 1, 2021
1 parent 5bb1992 commit dbf5100
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp
Expand Up @@ -113,8 +113,10 @@ void ShenandoahDegenGC::op_degenerated() {
op_mark();

case _degenerated_mark:
// No fallthrough. Continue mark, handed over from concurrent mark
if (_degen_point == ShenandoahDegenPoint::_degenerated_mark) {
// No fallthrough. Continue mark, handed over from concurrent mark if
// concurrent mark has yet completed
if (_degen_point == ShenandoahDegenPoint::_degenerated_mark &&
heap->is_concurrent_mark_in_progress()) {
op_finish_mark();
}
assert(!heap->cancelled_gc(), "STW mark can not OOM");
Expand Down

1 comment on commit dbf5100

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.