collectNoStack should be axed
Dmitry Olshansky
dmitry.olsh at gmail.com
Sun Apr 21 20:30:02 UTC 2024
On Sunday, 21 April 2024 at 19:28:11 UTC, Steven Schveighoffer
wrote:
> So I am helping to add a new GC to dlang, and one thing I have
> run into is that all correctly-written GC implementations must
> implement the function `collectNoStack`.
Great to hear that something is coming in the GC land.
> I did a PR to just see what happens when we do a full scan
> instead of the "no stack" scan, and the results are pretty
> positive. I'm going to update the PR to really remove all the
> tentacles of the "nostack" variable, but I wanted to bring this
> story to light because it's too long and bizarre to explain in
> the notes of a PR.
>
> https://github.com/dlang/dmd/pull/16401
>
> If there are any good reasons why we should have this, or I got
> something wrong, please let me know!
As you've found it - to run finalizers on everything that might
be still referenced by the main thread. For the unwashed masses
that expect finalizers to run at shutdown.
--
Dmitry Olshansky
CEO @ Glowlabs
https://olshansky.me
More information about the Digitalmars-d
mailing list