Async-signal safe TLS.
authorAndrew Hunter <ahh@google.com>
Fri, 3 Jan 2014 19:22:26 +0000 (11:22 -0800)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 3 Jan 2014 19:22:26 +0000 (11:22 -0800)
commit7f507ee17aee720fa423fa38502bc3caa0dd03d7
tree05ec2f0128d719097d18b531bf5e19c617520649
parent7dd009d8656c0f5c1c633f3764746335a6feefa7
Async-signal safe TLS.

ChangeLog:

2014-01-03  Andrew Hunter  <ahh@google.com>

* elf/dl-open.c (): New comment.
* elf/dl-reloc.c (_dl_try_allocate_static_tls): Use
atomic_compare_and_exchange_bool_acq
(_dl_allocate_static_tls): Block signals.
* elf/dl-tls.c (allocate_and_init): Return void.
(_dl_update_slotinfo): Block signals, use atomic update.

nptl/ChangeLog:

2014-01-03  Andrew Hunter  <ahh@google.com>

* nptl/Makefile (tst-tls7): New test.
* nptl/tst-tls7.c: New file.
* nptl/tst-tls7mod.c: New file.
* nptl/allocatestack.c (init_one_static_tls): Use atomic barrier.
ChangeLog
elf/dl-open.c
elf/dl-reloc.c
elf/dl-tls.c
nptl/ChangeLog
nptl/Makefile
nptl/allocatestack.c
nptl/tst-tls7.c [new file with mode: 0644]
nptl/tst-tls7mod.c [new file with mode: 0644]