Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-5883 feature 8.0: Port MariaDB arm64 performance improvements #4851

Draft
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Conversation

percona-ysorokin
Copy link
Collaborator

https://jira.percona.com/browse/PS-5883

Ported "rw_lock" ARM64 memory barriers patches from MariaDB Server.

MDEV-14529 "InnoDB rw-locks: optimize memory barriers"
(https://jira.mariadb.org/browse/MDEV-14529)

(commit MariaDB/server@b04f2a0f019)
(commit MariaDB/server@51bb18f989d)
(commit MariaDB/server@5b624f00fc0)
(commit MariaDB/server@57d20f1132d)
(commit MariaDB/server@c73e77da0fa)

@@ -85,7 +85,7 @@ static inline void rw_lock_reset_waiter_flag(
rw_lock_t *lock) /*!< in/out: rw-lock */
{
bool one = true;
lock->waiters.compare_exchange_strong(one, false);
lock->waiters.compare_exchange_strong(one, false, std::memory_order_relaxed);
Copy link
Contributor

@laurynas-biveinis laurynas-biveinis Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not a store(false, std::memory_order_relaxed)? Likewise one above

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blind copy-pasting.
Fixed

@percona-ysorokin percona-ysorokin force-pushed the dev/PS-5883-8.0-arm_rw_lock_relaxed branch from a0a2cb7 to cfa6172 Compare August 15, 2022 16:31
@percona-ysorokin percona-ysorokin changed the base branch from release-8.0.29-21 to 8.0 August 15, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants