[Issue 20430] [Regression 2.089.0] DLL Runtime.terminate() hangs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 14 09:01:39 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20430

--- Comment #5 from Rainer Schuetze <r.sagitario at gmx.de> ---
> https://wiki.dlang.org/Win32_DLLs_in_D#D_code_calling_D_code_in_DLLs

IMO the gcProxy approach is so limited (no multi-threading, no sharing of other
resources) that we should rather remove that section or add a large flashing
warning at the top. We need something like
https://dconf.org/2016/talks/thaut.html to support sharing the runtime across
DLLs.

If someone actually uses the gcProxy, a simple fix should be to disable
parallel marking by adding this line

extern (C) __gshared string[] rt_options = ["gcopt=parallel:0"];

--


More information about the Digitalmars-d-bugs mailing list