Leave GC collection to the user of the D library?
Vladimir Panteleev
thecybershadow.lists at gmail.com
Sun May 9 13:53:30 UTC 2021
On Sunday, 9 May 2021 at 13:42:48 UTC, IGotD- wrote:
> Also, TLS must be removed from phobos/druntime so that there is
> basically no need for tracking the threads from a memory point
> of view, at least it shouldn't crash if D doesn't know about
> the thread unless using thread primitives.
I don't think that would be enough. The garbage collector needs
to know of all threads running D code, so that it can scan their
stack and registers, so that it can know about objects the
pointer to which exists only in that thread's stack or registers.
More information about the Digitalmars-d
mailing list