]> git.ipfire.org Git - thirdparty/glibc.git/commit
Avoid extra load with CAS in __pthread_mutex_lock_full [BZ #28537]
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Nov 2021 14:31:51 +0000 (06:31 -0800)
committerSunil K Pandey <skpgkp2@gmail.com>
Wed, 28 Sep 2022 20:47:04 +0000 (13:47 -0700)
commitf5a70409db67f3a5f035d9d6082d11efcc74910d
tree76e4991b0005ae0627b2b3ffa6a6ffca4655387f
parentda7afc97ad9ddc817686d61f046277166ef42644
Avoid extra load with CAS in __pthread_mutex_lock_full [BZ #28537]

Replace boolean CAS with value CAS to avoid the extra load.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
(cherry picked from commit 0b82747dc48d5bf0871bdc6da8cb6eec1256355f)
nptl/pthread_mutex_lock.c