Commit 6bd76f8b authored by Sergey's avatar Sergey

Merge pull request #73 from akopytov/MDEV-7658-5.5

Fixes MDEV-7658: MDEV-7026 fix reintroduces MDEV-6615 on AArch64
parents 5d029288 70bc0a3e
...@@ -324,7 +324,7 @@ amount of increment. */ ...@@ -324,7 +324,7 @@ amount of increment. */
/**********************************************************//** /**********************************************************//**
Returns the old value of *ptr, atomically sets *ptr to new_val */ Returns the old value of *ptr, atomically sets *ptr to 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
......
...@@ -331,7 +331,7 @@ amount of increment. */ ...@@ -331,7 +331,7 @@ amount of increment. */
/**********************************************************//** /**********************************************************//**
Returns the old value of *ptr, atomically sets *ptr to new_val */ Returns the old value of *ptr, atomically sets *ptr to 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