Skip to content

Commit 3a72145

Browse files
committed
Replaced WFE instruction with ISB in mi_atomic_yield on ARM64 for non Windows as it significantly improves performance
1 parent 5818ae8 commit 3a72145

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)