pthread_key
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 15 Feb 2022 11:21:20 +0000 (11:21 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 15 Feb 2022 11:21:20 +0000 (11:21 +0000)
commitfe868e4e7c157d2eaf9c72b0a0acfe25b437adfb
tree4c9b7b30397246da9aa21c17824f441ec413bee2
parentb41ba383cc8443dc0b9bb0cfa49572478e053464
pthread_key

commit 315c9e794a5fb8f9672081dbd7493b5fd036ab05
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 14 00:15:13 2022 +0100

    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.

commit 33038a7d917889547c711be158ed34739af26351
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 14 00:47:18 2022 +0100

    mach: Fix LLL_SHARED value

    Mach defines GSYNC_SHARED, not SYNC_SHARED.

commit 06dbfcced3101886029ea3a46bcc98887d60f61e
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 14 01:38:03 2022 +0100

    htl: Fix initializing the key lock

    The static pthread_once_t in the pt-key.h header was creating one
    pthread_once_t per includer.  We have to use a shared common
    pthread_once_t instead.

commit 7a06be051c01b4325927efab5b4e4280bb4a5a42
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Feb 14 01:39:35 2022 +0100

    htl: Destroy thread-specific data before releasing joins

    Applications may want to assume that after pthread_join() returns, all
    thread-specific data has been released.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name pthread_key.diff
htl/pt-exit.c
mach/lowlevellock.h
sysdeps/htl/pt-getspecific.c
sysdeps/htl/pt-key-create.c
sysdeps/htl/pt-key.h
sysdeps/htl/pt-setspecific.c