summaryrefslogtreecommitdiff
path: root/nptl/nptl_setxid.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-07 11:52:35 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-09-10 08:22:11 -0300
commitd42c998acb18cadf77a133e36e85e21bae5d61c4 (patch)
treeafd62f69cbbc5b7412d6d7c61037990cb4f0dcc0 /nptl/nptl_setxid.c
parentf7876a01a1b4b0f77eadc9063e992b7b51f90a3f (diff)
downloadglibc-d42c998acb18cadf77a133e36e85e21bae5d61c4.tar.gz
nptl: Handle robust PI mutexes for !__ASSUME_SET_ROBUST_LIST (BZ #28268)
The robust PI mutexes are signaled by setting the LSB bit to 1, so the code requires to take this consideration before access the __pthread_mutex_s. The code is also simplified: the initialization code is not really required, PD->robust_head.list and PD->robust_list.__next are essentially the same regardless of __PTHREAD_MUTEX_HAVE_PREV, the futex wake is optimized to be issued only when required, and the futex shared bit is set only when required. Checked on a build for m68k-linux-gnu. I also checked on x86_64-linux-gnu by removing the check for !__ASSUME_SET_ROBUST_LIST.
Diffstat (limited to 'nptl/nptl_setxid.c')
0 files changed, 0 insertions, 0 deletions