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

Iain Buclaw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Iain Buclaw <[email protected]> ---
There's already this guard in defaultTraceHandler:
---
// avoid recursive GC calls in finalizer
import core.memory : GC;
if (GC.inFinalizer)
    return null;
---

So if the GC cannot be avoided entirely in allocating, there would need to be a
similar check for when GC.collect() is running.

--

Reply via email to