Leave GC collection to the user of the D library?
Imperatorn
johan_forsberg_86 at hotmail.com
Mon May 10 05:54:28 UTC 2021
On Sunday, 9 May 2021 at 20:53:28 UTC, Ali Çehreli wrote:
> On 5/9/21 6:51 AM, Vladimir Panteleev wrote:
>
> > In my experience, calling D from C/C++ works fine as long as
> 1) the D
> > runtime is allowed to initialize, and 2) all threads which
> execute D
> > code are registered with the D runtime.
>
> I have the following old branch that tries to fix bugs with
> attaching and detaching:
>
> https://github.com/dlang/druntime/pull/1989
>
> I also have this worry that if a foreign thread goes without
> the knowledge of D runtime, the program will crash because the
> runtime would try to stop a non-existing thread.
>
That sounds like a bug? 🤔
More information about the Digitalmars-d
mailing list