Skip to content

Commit

Permalink
8253902: G1: Starting a new marking cycle before the conc mark thread…
Browse files Browse the repository at this point in the history
… fully completed causes assertion failure

Reviewed-by: kbarrett, sjohanss
  • Loading branch information
Thomas Schatzl committed Oct 6, 2020
1 parent 9199783 commit c9d1dcc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hotspot/share/gc/g1/g1ConcurrentMarkThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ void G1ConcurrentMarkThread::stop_service() {
}

bool G1ConcurrentMarkThread::wait_for_next_cycle() {
assert(!in_progress(), "should have been cleared");

MonitorLocker ml(CGC_lock, Mutex::_no_safepoint_check_flag);
while (!in_progress() && !should_terminate()) {
ml.wait();
Expand Down

1 comment on commit c9d1dcc

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on c9d1dcc Oct 6, 2020

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.