diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-11-27 05:42:23 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-11-27 15:54:11 -0800 |
commit | f08bbe49c8820576e2149a5be44af0ce2ddb355b (patch) | |
tree | 3a2df42af4186c327bd833a6fadca1aaf2869e06 /posix/tst-pcre.c | |
parent | 167da422b30b35c9eb9fc819ce5d3b3b0d65c6f4 (diff) | |
download | glibc-hjl/pr13862.tar.gz |
Resize DTV if the current DTV isn't big enoughhjl/pr13862
This patch changes _dl_allocate_tls_init to resize DTV if the current DTV
isn't big enough. Tested on X86-64, x32 and ia32.
[BZ #13862]
* elf/dl-tls.c: Include <atomic.h>.
(oom): Remove #ifdef SHARED/#endif.
(_dl_static_dtv, _dl_initial_dtv): Moved before ...
(_dl_resize_dtv): This. Extracted from _dl_update_slotinfo.
(_dl_allocate_tls_init): Resize DTV if the current DTV isn't
big enough.
(_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
* nptl/Makefile (tests): Add tst-stack4.
(modules-names): Add tst-stack4mod.
($(objpfx)tst-stack4): New.
(tst-stack4mod.sos): Likewise.
($(objpfx)tst-stack4.out): Likewise.
($(tst-stack4mod.sos)): Likewise.
(clean): Likewise.
* nptl/tst-stack4.c: New file.
* nptl/tst-stack4mod.c: Likewise.
Diffstat (limited to 'posix/tst-pcre.c')
0 files changed, 0 insertions, 0 deletions