mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8222988: Use MonitorLocker rather than MutexLocker when wait/notify used
Fixed use cases in code except CMS. Reviewed-by: rehn, dcubed
This commit is contained in:
parent
ed9eac2bb9
commit
ccb2e9d925
21 changed files with 91 additions and 101 deletions
|
@ -450,8 +450,8 @@ int VM_Exit::wait_for_threads_in_native_to_block() {
|
|||
|
||||
attempts++;
|
||||
|
||||
MutexLocker ml(&timer, Mutex::_no_safepoint_check_flag);
|
||||
timer.wait_without_safepoint_check(10);
|
||||
MonitorLocker ml(&timer, Mutex::_no_safepoint_check_flag);
|
||||
ml.wait(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue