[Issue 22985] dip1008 implementation uses the GC behind the scenes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 4 12:13:24 UTC 2022


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
You probably could allocate the trace handler inline, either just have a static
array (a certain length of stack information has no practical value anyway, so
just truncating it surely good enough irl) or let the Exception dtor take care
of it with a malloc/free pair internally on the private slice. I actually
thought it used to do this but I might be remembering wrong.

--


More information about the Digitalmars-d-bugs mailing list