Skip to content

Commit 8d30c1a

Browse files
authored
Merge pull request #9130 from awlauria/fix_x86_mb
Add a mfence to opal_atomic_mb() for x86.
2 parents 25827a4 + 8dca246 commit 8d30c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/include/opal/sys/x86_64/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
static inline void opal_atomic_mb(void)
5454
{
55-
MB();
55+
__asm__ __volatile__("mfence": : :"memory");
5656
}
5757

5858
static inline void opal_atomic_rmb(void)

0 commit comments

Comments
 (0)