Skip to content

Commit 056ba2d

Browse files
committed
8316566: RISC-V: Zero extended narrow oop passed to Atomic::cmpxchg
Reviewed-by: goetz Backport-of: 9ffec67a3f2dada329a9887338c570424a79e7f8
1 parent 3f29f1e commit 056ba2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ inline void OrderAccess::storestore() { release(); }
3737
inline void OrderAccess::loadstore() { acquire(); }
3838
inline void OrderAccess::storeload() { fence(); }
3939

40-
#define FULL_MEM_BARRIER __sync_synchronize()
40+
#define FULL_MEM_BARRIER __atomic_thread_fence(__ATOMIC_SEQ_CST);
4141
#define READ_MEM_BARRIER __atomic_thread_fence(__ATOMIC_ACQUIRE);
4242
#define WRITE_MEM_BARRIER __atomic_thread_fence(__ATOMIC_RELEASE);
4343

0 commit comments

Comments
 (0)