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)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 12 Nov 2021 18:30:57 +0000 (10:30 -0800)
commit0b82747dc48d5bf0871bdc6da8cb6eec1256355f
tree323e1555048a99c28508090d656b2dccd199b61d
parent6c1e3c0fd09a9653f562db69e77281e358451163
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>
nptl/pthread_mutex_lock.c