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
pt-dealloc.c
pt-detach.c
pt-exit.c
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
pt-self.c
pt-setcancelstate.c
pt-setcanceltype.c
pt-sigmask.c
pt-spin-inlines.c
pt-testcancel.c
pt-yield.c
register-atfork.c
shlib-versions
Versions htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00