Skip to content

Commit f4c6282

Browse files
authored
Merge pull request #1215 from akaStiX/atomic_yield_arm_fix
Replaced WFE instruction with ISB in mi_atomic_yield on ARM64
2 parents 9db2722 + 3a72145 commit f4c6282

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/mimalloc/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static inline void mi_atomic_yield(void) {
382382
}
383383
#elif defined(__aarch64__)
384384
static inline void mi_atomic_yield(void) {
385-
__asm__ volatile("wfe");
385+
__asm__ volatile("isb");
386386
}
387387
#elif defined(__arm__)
388388
#if __ARM_ARCH >= 7

0 commit comments

Comments
 (0)