git-jemalloc2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 8 Sep 2023 18:39:29 +0000 (19:39 +0100)
committerAurelien Jarno <aurel32@debian.org>
Fri, 8 Sep 2023 18:39:29 +0000 (19:39 +0100)
commitdaf59ed03314d2a4b32e1116a0dc5a9edda719c2
tree904047550c5a049f9394b48a2e60e5168dc9591c
parent613a398ed2d9237d9d5ed0fd5fb199bc330ecabb
git-jemalloc2

commit 53da64d1cf3694a132287d1ab6e9655031124e32
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Aug 8 12:19:29 2023 +0200

    htl: Initialize ___pthread_self early

    When using jemalloc, malloc() needs to use TSD, while libpthread
    initialization needs malloc(). Having ___pthread_self set early to some
    static storage allows TSD to work early, thus allowing jemalloc and
    libpthread to initialize together.

    This incidentaly simplifies __pthread_enable/disable_asynccancel and
    __pthread_self, now that ___pthread_self is always initialized.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-jemalloc2.diff
htl/cancellation.c
htl/pt-self.c
sysdeps/mach/hurd/htl/pt-sysdep.c