Skip to content

Commit

Permalink
8316566: RISC-V: Zero extended narrow oop passed to Atomic::cmpxchg
Browse files Browse the repository at this point in the history
Reviewed-by: luhenry, fyang
  • Loading branch information
robehn committed Sep 28, 2023
1 parent 42924ed commit 2d154fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ inline void OrderAccess::storestore() { release(); }
inline void OrderAccess::loadstore() { acquire(); }
inline void OrderAccess::storeload() { fence(); }

#define FULL_MEM_BARRIER __sync_synchronize()
#define FULL_MEM_BARRIER __atomic_thread_fence(__ATOMIC_SEQ_CST);
#define READ_MEM_BARRIER __atomic_thread_fence(__ATOMIC_ACQUIRE);
#define WRITE_MEM_BARRIER __atomic_thread_fence(__ATOMIC_RELEASE);

Expand Down

1 comment on commit 2d154fc

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.