8253902: G1: Starting a new marking cycle before the conc mark thread fully completed causes assertion failure

Reviewed-by: kbarrett, sjohanss
This commit is contained in:
Thomas Schatzl 2020-10-06 10:16:19 +00:00
parent 919978380c
commit c9d1dcc63d

View File

@ -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();