Commit 7f7cee87 authored by Alexey Kopytov's avatar Alexey Kopytov

Merge branch 'MDEV-7658-5.5' into MDEV-7658-10.0

parents e5f1e841 70bc0a3e
...@@ -452,7 +452,7 @@ Returns the old value of *ptr, atomically sets *ptr to new_val */ ...@@ -452,7 +452,7 @@ Returns the old value of *ptr, atomically sets *ptr to new_val */
# define os_atomic_test_and_set_ulint(ptr, new_val) \ # define os_atomic_test_and_set_ulint(ptr, new_val) \
__sync_lock_test_and_set(ptr, new_val) __sync_lock_test_and_set(ptr, new_val)
#ifdef __powerpc__ #if defined(__powerpc__) || defined(__aarch64__)
/* /*
os_atomic_test_and_set_byte_release() should imply a release barrier before os_atomic_test_and_set_byte_release() should imply a release barrier before
setting, and a full barrier after. But __sync_lock_test_and_set() is only setting, and a full barrier after. But __sync_lock_test_and_set() is only
......
...@@ -452,7 +452,7 @@ Returns the old value of *ptr, atomically sets *ptr to new_val */ ...@@ -452,7 +452,7 @@ Returns the old value of *ptr, atomically sets *ptr to new_val */
# define os_atomic_test_and_set_ulint(ptr, new_val) \ # define os_atomic_test_and_set_ulint(ptr, new_val) \
__sync_lock_test_and_set(ptr, new_val) __sync_lock_test_and_set(ptr, new_val)
#ifdef __powerpc__ #if defined(__powerpc__) || defined(__aarch64__)
/* /*
os_atomic_test_and_set_byte_release() should imply a release barrier before os_atomic_test_and_set_byte_release() should imply a release barrier before
setting, and a full barrier after. But __sync_lock_test_and_set() is only setting, and a full barrier after. But __sync_lock_test_and_set() is only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment