TLS/GC issues on macOS
Sönke Ludwig
sludwig+d at outerproduct.org
Mon Jan 7 08:02:45 UTC 2019
Am 03.01.2019 um 21:18 schrieb David Nadlinger:
> On 3 Jan 2019, at 12:58, Sönke Ludwig via digitalmars-d-ldc wrote:
>> There appears to be a GC visibility issue of TLS sections on macOS
>> when multiple threads are involved. I added a test case to what looks
>> like the same issue: https://github.com/ldc-developers/ldc/issues/2187
>
> Try this patch:
>
> (...)
>
> Still trying to figure out how much of that code can be stripped away
> for non-Shared builds (it's a mess, as DMD partially supports shared
> libraries on Linux with a static runtime), or how on earth nobody has
> found this before.
>
> Best,
> David
That appears to fix it indeed. I still have to run the actual test case,
but the application runs fine now.
Many thanks for the quick solution!
More information about the digitalmars-d-ldc
mailing list