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:
Coleen Phillimore 2019-04-29 16:01:52 -04:00
parent ed9eac2bb9
commit ccb2e9d925
21 changed files with 91 additions and 101 deletions

View file

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