[Issue 3523] [GC] Fiber is not garbage collected properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 15 16:19:56 UTC 2020


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

--- Comment #16 from Witold Baryluk <witold.baryluk+d at gmail.com> ---
Steven, yes this is still an issue with current compiler and runtime.

The issue is that yes, it probably is possible to exclude references from one
fiber to itself, but there might be weird cases where there are complex chains
of fibers pointing to each other, and whole chains isn't accessible from
anywhere else, or even from each fiber directly, but it is hard to tell if it
is a garbage or not. But if all elements in the chain are in TERM state, or
only leaves in the graph are in TERM state, that should be doable. But i have
no idea if GC can compute such condition efficiently.

--


More information about the Digitalmars-d-bugs mailing list