]> sourceware.org Git - glibc.git/commit
htl: Make pthread_[gs]etspecific not check for key validity
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 Feb 2022 23:15:13 +0000 (00:15 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 Feb 2022 18:29:02 +0000 (19:29 +0100)
commit315c9e794a5fb8f9672081dbd7493b5fd036ab05
treefbcefd907c86a793e7668c6581c370a8502efc03
parent0fb8800029d230b3711bf722b2a47db92d0e273f
htl: Make pthread_[gs]etspecific not check for key validity

Since __pthread_key_create might be concurrently reallocating the
__pthread_key_destructors array, it's not safe to access it without the
mutex held. Posix explicitly says we are allowed to prefer performance
over error detection.
sysdeps/htl/pt-getspecific.c
sysdeps/htl/pt-setspecific.c
This page took 0.039266 seconds and 5 git commands to generate.