On Tuesday, 10 November 2015 at 17:55:58 UTC, bitwise wrote:
Also, the memory is allocated using calloc, and the block is never added to the GC..doesn't this mean that the GC won't scan there, and could potentially free objects that are stored there?
It's been quite some time long time since I have looked at the details of DMD's TLS emulation (LDC does not need it), but for scanning the TLS area, you want to have a look at initTLSRanges().
— David
