mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +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
|
@ -234,7 +234,7 @@ void trace_class_resolution(Klass* to_class) {
|
|||
uintx count = 0;
|
||||
|
||||
while (Atomic::cmpxchg(1, &JVMHistogram_lock, 0) != 0) {
|
||||
while (OrderAccess::load_acquire(&JVMHistogram_lock) != 0) {
|
||||
while (Atomic::load_acquire(&JVMHistogram_lock) != 0) {
|
||||
count +=1;
|
||||
if ( (WarnOnStalledSpinLock > 0)
|
||||
&& (count % WarnOnStalledSpinLock == 0)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue