mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8234562: Move OrderAccess::release_store*/load_acquire to Atomic
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
e06c17ce33
commit
e527ce4b57
97 changed files with 554 additions and 570 deletions
|
@ -195,7 +195,7 @@ void exit_globals() {
|
|||
static volatile bool _init_completed = false;
|
||||
|
||||
bool is_init_completed() {
|
||||
return OrderAccess::load_acquire(&_init_completed);
|
||||
return Atomic::load_acquire(&_init_completed);
|
||||
}
|
||||
|
||||
void wait_init_completed() {
|
||||
|
@ -208,6 +208,6 @@ void wait_init_completed() {
|
|||
void set_init_completed() {
|
||||
assert(Universe::is_fully_initialized(), "Should have completed initialization");
|
||||
MonitorLocker ml(InitCompleted_lock, Monitor::_no_safepoint_check_flag);
|
||||
OrderAccess::release_store(&_init_completed, true);
|
||||
Atomic::release_store(&_init_completed, true);
|
||||
ml.notify_all();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue