8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait

Remove improper wait argument.

Reviewed-by: sjohanss, tschatzl, ayang
This commit is contained in:
Kim Barrett 2020-10-30 04:24:34 +00:00
parent 1a89d68e87
commit 379ba80eb7

View File

@ -108,7 +108,7 @@ void G1ConcurrentMarkThread::delay_to_keep_mmu(bool remark) {
jlong sleep_time_ms = ceil(sleep_time_sec * MILLIUNITS);
if (sleep_time_ms <= 0) {
break; // Passed end time.
} else if (ml.wait(sleep_time_ms, Monitor::_no_safepoint_check_flag)) {
} else if (ml.wait(sleep_time_ms)) {
break; // Timeout => reached end time.
}
// Other (possibly spurious) wakeup. Retry with updated sleep time.