1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-21 08:47:42 +03:00

Use "rep; nop" in InnoDB if it is available and "pause" is not

This commit is contained in:
Vasil Dimov
2010-12-02 10:36:45 +02:00
parent 9bfb5ece4b
commit 691bf28a56

View File

@@ -61,6 +61,8 @@ typedef time_t ib_time_t;
Also asm volatile may trigger a memory barrier (spilling all registers
to memory). */
# define UT_RELAX_CPU() __asm__ __volatile__ ("pause")
#elif defined(HAVE_FAKE_PAUSE_INSTRUCTION)
# define UT_RELAX_CPU() __asm__ __volatile__ ("rep; nop")
#elif defined(HAVE_ATOMIC_BUILTINS)
# define UT_RELAX_CPU() do { \
volatile lint volatile_var; \