libphobos: Fix segfault in runtime caused by unexpected GC of TLS data.
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 25 Apr 2019 15:31:35 +0000 (15:31 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Thu, 25 Apr 2019 15:31:35 +0000 (15:31 +0000)
commit9125dc3292822c748b1d866ea2d78e00708d5df6
tree3168084ac2a7b9b2987f6195e7252b929f3123c6
parentaeec4861c41eb5afa5b0700103e6cc404047cc6d
libphobos: Fix segfault in runtime caused by unexpected GC of TLS data.

libphobos/ChangeLog:

2019-04-25  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/90250
* libdruntime/gcc/sections/elf_shared.d (initTLSRanges): Populate
_tlsRanges in every startup thread.
* testsuite/libphobos.thread/thread.exp: Load libphobos-dg.exp.
* testsuite/libphobos.thread/tlsgc_sections.d: New test.

From-SVN: r270576
libphobos/ChangeLog
libphobos/libdruntime/gcc/sections/elf_shared.d
libphobos/testsuite/libphobos.thread/thread.exp
libphobos/testsuite/libphobos.thread/tlsgc_sections.d [new file with mode: 0644]