Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/gc/env/volatile.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
// Please do not use this macro outside of this file. It is subject to change or removal without
// notice.
//
#define VOLATILE_MEMORY_BARRIER() asm volatile ("" : : : "memory")
#define VOLATILE_MEMORY_BARRIER() __atomic_signal_fence(__ATOMIC_SEQ_CST)
Comment thread
janvorli marked this conversation as resolved.
#endif // HOST_ARM || HOST_ARM64
#elif (defined(HOST_ARM) || defined(HOST_ARM64)) && _ISO_VOLATILE
// ARM & ARM64 have a very weak memory model and very few tools to control that model. We're forced to perform a full
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/inc/volatile.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
// Please do not use this macro outside of this file. It is subject to change or removal without
// notice.
//
#define VOLATILE_MEMORY_BARRIER() asm volatile ("" : : : "memory")
#define VOLATILE_MEMORY_BARRIER() __atomic_signal_fence(__ATOMIC_SEQ_CST)
Comment thread
janvorli marked this conversation as resolved.
#endif // HOST_ARM || HOST_ARM64

#elif (defined(HOST_ARM) || defined(HOST_ARM64)) && _ISO_VOLATILE
Expand Down
Loading