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 htl: Add support for libc cancellation points 2020-02-10 01:03:50 +00:00
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 htl: Add __errno_location and __h_errno_location 2020-01-04 19:37:53 +01:00
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 htl: Rename _pthread_mutex_init/destroy to __pthread_mutex_init/destroy 2020-02-09 13:56:45 +01:00
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 htl: Add support for libc cancellation points 2020-02-10 01:03:50 +00:00
pt-yield.c htl: Avoid exposing unixoid functions 2020-01-13 01:38:33 +01:00
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