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
Backport-of: 2d154fcd0de0612f58abbc5027f409b9b2eb0dc2
  • Loading branch information
robehn committed Oct 6, 2023
1 parent a831b7a commit 8afd87b
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 8afd87b

@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.