gcc/libphobos
Iain Buclaw 796b7cbac3 libphobos: Don't call free on the TLS array in the emutls destroy function.
Fixes a segfault seen on Darwin when a GC scan is ran after a thread has
been destroyed.  As the global emutlsArrays hash still has a reference
to the array itself, and tries to iterate all elements.

Setting the length to zero frees all allocated elements in the array,
and ensures that it is skipped when the _d_emutls_scan is called.

libphobos/ChangeLog:

	* libdruntime/gcc/emutls.d (emutlsDestroyThread): Clear the per-thread
	TLS array, don't call free().
2022-04-26 14:32:11 +01:00
..
libdruntime libphobos: Don't call free on the TLS array in the emutls destroy function. 2022-04-26 14:32:11 +01:00
m4 libphobos: Update comment for DRUNTIME_OS_SOURCES 2021-09-01 14:19:35 +02:00
src d: Merge upstream dmd eb7bee331, druntime 27834edb, phobos ac296f80c. 2022-04-21 20:03:08 +01:00
testsuite d: Merge upstream dmd 47871363d, druntime, c52e28b7, phobos 99e9c1b77. 2022-04-02 23:56:52 +02:00
acinclude.m4 Update copyright years. 2022-01-03 10:42:10 +01:00
aclocal.m4 libphobos: Add --enable-cet to configure 2020-05-08 15:11:41 -07:00
ChangeLog Daily bump. 2022-04-22 00:16:43 +00:00
config.h.in libphobos: Fix configure test for backtrace-supported.h 2019-04-16 05:58:25 +00:00
configure libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
configure.ac libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
configure.tgt libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
d_rules.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in d: Merge upstream dmd 52844d4b1, druntime dbd0c874, phobos 896b1d0e1. 2022-02-16 11:15:02 +01:00
README.gcc Document merge process for dmd, druntime and phobos. 2019-01-12 19:50:41 +00:00

The files in this directory where noted are part of the DRuntime
and Phobos library.

DRuntime is the low-level runtime library backing the D programming
language, hosted at https://github.com/dlang/druntime/.

Phobos is the standard library for the D Programming Language, hosted
at https://github.com/dlang/phobos/.

The following sources and directories are part of DRuntime:
  libdruntime/core/
  libdruntime/gc/
  libdruntime/gcstub/
  libdruntime/object.d
  libdruntime/rt/

The following sources and directories are part of Phobos:
  src/etc/
  src/index.d
  src/std/

To report a bug or look up known issues with the runtime or standard
library please visit the issue tracker at https://issues.dlang.org/.

All changes to either of these libraries should go through the
upstream repository first, then merged back to GCC.