Skip to content

Commit

Permalink
8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait
Browse files Browse the repository at this point in the history
Remove improper wait argument.

Reviewed-by: sjohanss, tschatzl, ayang
  • Loading branch information
Kim Barrett committed Oct 30, 2020
1 parent 1a89d68 commit 379ba80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1ConcurrentMarkThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

1 comment on commit 379ba80

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 379ba80 Oct 30, 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.