8222811: Consolidate MutexLockerEx and MutexLocker

Make MutexLocker be MutexLockerEx implementation, remove MutexLockerEx calls.

Reviewed-by: dcubed, dholmes, pliden, rehn
This commit is contained in:
Coleen Phillimore 2019-04-25 10:56:31 -04:00
parent 88303d1c60
commit fbafef11c0
127 changed files with 718 additions and 746 deletions

View file

@ -191,15 +191,15 @@ bool is_init_completed() {
}
void wait_init_completed() {
MonitorLockerEx ml(InitCompleted_lock, Monitor::_no_safepoint_check_flag);
MonitorLocker ml(InitCompleted_lock, Monitor::_no_safepoint_check_flag);
while (!_init_completed) {
ml.wait(Monitor::_no_safepoint_check_flag);
ml.wait();
}
}
void set_init_completed() {
assert(Universe::is_fully_initialized(), "Should have completed initialization");
MonitorLockerEx ml(InitCompleted_lock, Monitor::_no_safepoint_check_flag);
MonitorLocker ml(InitCompleted_lock, Monitor::_no_safepoint_check_flag);
OrderAccess::release_store(&_init_completed, true);
ml.notify_all();
}