]> git.ipfire.org Git - thirdparty/glibc.git/commit
Avoid extra load with CAS in __pthread_mutex_clocklock_common [BZ #28537]
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Nov 2021 14:54:01 +0000 (06:54 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 12 Nov 2021 18:31:31 +0000 (10:31 -0800)
commit49302b8fdf9103b6fc0a398678668a22fa19574c
tree1b06b2062260382deeea33957e840e6792fa23eb
parent0b82747dc48d5bf0871bdc6da8cb6eec1256355f
Avoid extra load with CAS in __pthread_mutex_clocklock_common [BZ #28537]

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

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
nptl/pthread_mutex_timedlock.c