diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-08 12:19:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-08 12:19:29 +0200 |
commit | 53da64d1cf3694a132287d1ab6e9655031124e32 (patch) | |
tree | 348cdf0a18887d4a606e30ee10d76217cfe33092 /sysdeps/unix/sysv/linux/fstatat64.c | |
parent | 644aa127b9b42a899a12b6ccc6644bc035c231e3 (diff) | |
download | glibc-53da64d1cf3694a132287d1ab6e9655031124e32.tar.gz glibc-53da64d1cf3694a132287d1ab6e9655031124e32.tar.xz glibc-53da64d1cf3694a132287d1ab6e9655031124e32.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fstatat64.c')
0 files changed, 0 insertions, 0 deletions