diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-18 16:24:19 -0800 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-18 16:24:19 -0800 |
commit | 35e8f7ab94c910659de9d507aa0f3e1f8973d914 (patch) | |
tree | fca3c69ec2085dbeee15673472350c9067ddf4f7 /sysdeps | |
parent | 69a17d9d245dc3551792e95e1823cc2d877592f3 (diff) | |
download | glibc-35e8f7ab94c910659de9d507aa0f3e1f8973d914.tar.gz glibc-35e8f7ab94c910659de9d507aa0f3e1f8973d914.tar.xz glibc-35e8f7ab94c910659de9d507aa0f3e1f8973d914.zip |
Patch 3/4 of the effort to make TLS access async-signal-safe.
Factor out _dl_clear_dtv. 2013-12-18 Andrew Hunter <ahh@google.com> * elf/Versions (ld): Add _dl_clear_dtv. * sysdeps/generic/ldsodefs.h (_dl_clear_dtv): New prototype. * elf/dl-tls.c (_dl_clear_dtv): New function. * nptl/allocatestack.c (get_cached_stack): Call _dl_clear_dtv.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index e919e4136c..1bda60c6fa 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -989,6 +989,11 @@ extern void *_dl_allocate_tls_storage (void) extern void *_dl_allocate_tls_init (void *) internal_function; rtld_hidden_proto (_dl_allocate_tls_init) +/* Remove all allocated dynamic TLS regions from a DTV + for reuse by new thread. */ +extern void _dl_clear_dtv (dtv_t *dtv) internal_function; +rtld_hidden_proto (_dl_clear_dtv) + /* Deallocate memory allocated with _dl_allocate_tls. */ extern void _dl_deallocate_tls (void *tcb, bool dealloc_tcb) internal_function; rtld_hidden_proto (_dl_deallocate_tls) |