]> gcc.gnu.org Git - gcc.git/commit
libphobos: Don't call __gthread_key_delete in the emutls destroy function.
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 19 Nov 2021 13:26:07 +0000 (14:26 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 19 Nov 2021 13:26:07 +0000 (14:26 +0100)
commitd686cb0d740b0278fdbd7915f43faff14b203888
tree8f7615b8e9467f6d2d9e5b352f4f04e4602e2403
parentea2954df43d4162af23a20c84f4c5485463977ac
libphobos: Don't call __gthread_key_delete in the emutls destroy function.

Fixes a EXC_BAD_ACCESS issue seen on Darwin when the libphobos DSO gets
unloaded.  Based on reading libgcc's emutls implementation, as it
doesn't call __gthread_key_delete directly, neither should libphobos.

libphobos/ChangeLog:

* libdruntime/gcc/emutls.d (emutlsDestroyThread): Don't remove entry
from global array.
(_d_emutls_destroy): Don't call __gthread_key_delete.
libphobos/libdruntime/gcc/emutls.d
This page took 0.062315 seconds and 5 git commands to generate.