mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
a50efac19a
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. |
||
---|---|---|
.. | ||
tests | ||
alloca_cutoff.c | ||
cancellation.c | ||
configure | ||
configure.in | ||
cthreads-compat.c | ||
forward.c | ||
herrno.c | ||
libc_pthread_init.c | ||
libpthread_pic.a | ||
libpthread_syms.a | ||
libpthread.a | ||
lockfile.c | ||
Makefile | ||
pt-alloc.c | ||
pt-cancel.c | ||
pt-cleanup.c | ||
pt-create.c | ||
pt-dealloc.c | ||
pt-detach.c | ||
pt-exit.c | ||
pt-getattr.c | ||
pt-initialize.c | ||
pt-internal.h | ||
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 |