glibc/htl
Samuel Thibault a50efac19a htl: Move cleanup stack to variable shared between libc and pthread
If libpthread gets loaded dynamically, the stack needs to already contain the
cleanup handlers of the main thread.

* htl/libc_pthread_init.c (__pthread_cleanup_stack): New per-thread variable.
* htl/Versions (libc): Add __pthread_cleanup_stack as private symbol.
* htl/pt-internal.h (struct __pthread): Remove cancelation_handlers
field.
(__pthread_cleanup_stack): Add variable declaration.
* htl/pt-alloc.c (initialize_pthread): Remove initialization of
cancelation_handlers field.
* htl/pt-cleanup.c (__pthread_get_cleanup_stack): Return the address of
__pthread_cleanup_stack instead of that of the cancelation_handlers
field.
* htl/forward.c: Include <pt-internal.h>.
(dummy_list): Remove variable.
(__pthread_get_cleanup_stack): Return the address of __pthread_cleanup_stack
instead of that of dummy_list.
2020-06-14 15:53:04 +00:00
..
tests
alloca_cutoff.c
cancellation.c
configure
configure.in
cthreads-compat.c
forward.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
herrno.c
libc_pthread_init.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
libpthread_pic.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread_syms.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
lockfile.c
Makefile htl: initialize first and prevent from unloading 2020-06-14 15:53:04 +00:00
pt-alloc.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-cancel.c
pt-cleanup.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-create.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-dealloc.c
pt-detach.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-exit.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-getattr.c
pt-initialize.c
pt-internal.h htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-join.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-self.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-setcancelstate.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-setcanceltype.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-sigmask.c
pt-spin-inlines.c
pt-testcancel.c
pt-yield.c
register-atfork.c htl: fix register-atfork ordering 2020-06-07 03:00:22 +02:00
shlib-versions
Versions htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00