mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#ifdef _WIN32
|
||||
#elif defined HAVE_PAUSE_INSTRUCTION
|
||||
#elif defined(_ARCH_PWR8)
|
||||
#elif defined __GNUC__ && (defined __arm__ || defined __aarch64__)
|
||||
#else
|
||||
# include "my_global.h"
|
||||
# include "my_atomic.h"
|
||||
@@ -81,6 +82,9 @@ static inline void MY_RELAX_CPU(void)
|
||||
#endif
|
||||
#elif defined(_ARCH_PWR8)
|
||||
__ppc_get_timebase();
|
||||
#elif defined __GNUC__ && (defined __arm__ || defined __aarch64__)
|
||||
/* Mainly, prevent the compiler from optimizing away delay loops */
|
||||
__asm__ __volatile__ ("":::"memory");
|
||||
#else
|
||||
int32 var, oldval = 0;
|
||||
my_atomic_cas32_strong_explicit(&var, &oldval, 1, MY_MEMORY_ORDER_RELAXED,
|
||||
|
Reference in New Issue
Block a user