https://issues.dlang.org/show_bug.cgi?id=18544
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Steven Schveighoffer <[email protected]> --- A thought on a potential fix: once you detect ranges being added/removed from independent threads, then you initialize the GC. You should be able to do this with an atomic read, and then CAS to a ProtoGC instance variable that stores the "main thread" id. The atomic read should be negligible compared to manipulating the roots/ranges arrays. --
