]> git.ipfire.org Git - thirdparty/glibc.git/commit
Move assignment out of the CAS condition
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 12 Nov 2021 19:47:42 +0000 (11:47 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Nov 2021 13:50:56 +0000 (05:50 -0800)
commit120ac6d238825452e8024e2f627da33b2508dfd3
tree4215cb357a961543c55aa8bbe5ef754d212be1e8
parentcbcd65c8b526555d9b98628338973f91f74002ad
Move assignment out of the CAS condition

Update

commit 49302b8fdf9103b6fc0a398678668a22fa19574c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Nov 11 06:54:01 2021 -0800

    Avoid extra load with CAS in __pthread_mutex_clocklock_common [BZ #28537]

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

and

commit 0b82747dc48d5bf0871bdc6da8cb6eec1256355f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Nov 11 06:31:51 2021 -0800

    Avoid extra load with CAS in __pthread_mutex_lock_full [BZ #28537]

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

by moving assignment out of the CAS condition.
nptl/pthread_mutex_lock.c
nptl/pthread_mutex_timedlock.c