mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8222811: Consolidate MutexLockerEx and MutexLocker
Make MutexLocker be MutexLockerEx implementation, remove MutexLockerEx calls. Reviewed-by: dcubed, dholmes, pliden, rehn
This commit is contained in:
parent
88303d1c60
commit
fbafef11c0
127 changed files with 718 additions and 746 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue