mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-03 09:12:59 +00:00
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:
parent
1a89d68e87
commit
379ba80eb7
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user