diff options
-rw-r--r-- | reference/jemalloc/include/jemalloc/jemalloc_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/reference/jemalloc/include/jemalloc/jemalloc_defs.h b/reference/jemalloc/include/jemalloc/jemalloc_defs.h index 1d322fd..de73acc 100644 --- a/reference/jemalloc/include/jemalloc/jemalloc_defs.h +++ b/reference/jemalloc/include/jemalloc/jemalloc_defs.h @@ -46,7 +46,11 @@ * Hyper-threaded CPUs may need a special instruction inside spin loops in * order to yield to another virtual CPU. */ +#if (defined(__i386__) || defined(__x86_64__) #define CPU_SPINWAIT __asm__ volatile("pause") +#else +#define CPU_SPINWAIT +#endif /* Defined if the equivalent of FreeBSD's atomic(9) functions are available. */ /* #undef JEMALLOC_ATOMIC9 */ |