diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-18 16:46:18 -0800 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-18 16:46:18 -0800 |
commit | 1f33d36a8a9e78c81bed59b47f260723f56bb7e6 (patch) | |
tree | ff72018a2e0021f7a1110289681ed8ab4516df37 /malloc | |
parent | 35e8f7ab94c910659de9d507aa0f3e1f8973d914 (diff) | |
download | glibc-1f33d36a8a9e78c81bed59b47f260723f56bb7e6.tar glibc-1f33d36a8a9e78c81bed59b47f260723f56bb7e6.tar.gz glibc-1f33d36a8a9e78c81bed59b47f260723f56bb7e6.tar.bz2 glibc-1f33d36a8a9e78c81bed59b47f260723f56bb7e6.zip |
Patch 2/4 of the effort to make TLS access async-signal-safe.
Add a signal-safe malloc replacement.
2013-12-18 Andrew Hunter <ahh@google.com>
* sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
(__signal_safe_malloc, __signal_safe_free): Likewise.
(__signal_safe_realloc, __signal_safe_calloc): Likewise.
* elf/dl-misc.c (__signal_safe_allocator_header): New struct.
(__signal_safe_memalign, __signal_safe_malloc): New function.
(__signal_safe_free, __signal_safe_realloc): Likewise.
(__signal_safe_calloc): Likewise.
* elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
functions.
(_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
Diffstat (limited to 'malloc')
0 files changed, 0 insertions, 0 deletions