Skip to content
/ server Public

Fixes MDEV-7658: MDEV-7026 fix reintroduces MDEV-6615 on AArch64#73

Merged
svoj merged 1 commit intoMariaDB:5.5from
akopytov:MDEV-7658-5.5
May 27, 2015
Merged

Fixes MDEV-7658: MDEV-7026 fix reintroduces MDEV-6615 on AArch64#73
svoj merged 1 commit intoMariaDB:5.5from
akopytov:MDEV-7658-5.5

Conversation

@akopytov
Copy link
Contributor

This is an addendum to the fix for MDEV-7026. The ARM memory model is
similar to that of PowerPC and thus needs the same semantics with
respect to memory barriers. That is, os_atomic_test_and_set___release()
must be a store with a release barrier followed by a full
barrier. Unlike x86 using __sync_lock_test_and_set() which is
implemented as “exclusive load with acquire barriers + exclusive store”
is insufficient in contexts where os_atomic_test_and_set___release()
macros are used.

This is an addendum to the fix for MDEV-7026. The ARM memory model is
similar to that of PowerPC and thus needs the same semantics with
respect to memory barriers. That is, os_atomic_test_and_set_*_release()
must be a store with a release barrier followed by a full
barrier. Unlike x86 using __sync_lock_test_and_set() which is
implemented as “exclusive load with acquire barriers + exclusive store”
is insufficient in contexts where os_atomic_test_and_set_*_release()
macros are used.
@svoj
Copy link
Contributor

svoj commented May 27, 2015

Great! Thanks for fixing this.

svoj added a commit that referenced this pull request May 27, 2015
Fixes MDEV-7658: MDEV-7026 fix reintroduces MDEV-6615 on AArch64
@svoj svoj merged commit 6bd76f8 into MariaDB:5.5 May 27, 2015
@akopytov akopytov deleted the MDEV-7658-5.5 branch May 27, 2015 11:16
ankitkumar031 pushed a commit to ankitkumar031/server that referenced this pull request Apr 16, 2017
Adding handler for triggering talos jobs twice on PGO builds
vuvova pushed a commit that referenced this pull request Jun 22, 2017
dr-m pushed a commit that referenced this pull request Nov 10, 2017
@svoj svoj self-assigned this Apr 22, 2018
@svoj svoj added this to the 5.5 milestone Apr 22, 2018
spetrunia pushed a commit that referenced this pull request Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants