April 04, 2022 [Issue 22985] New: dip1008 implementation uses the GC behind the scenes | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22985 Issue ID: 22985 Summary: dip1008 implementation uses the GC behind the scenes Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: razvan.nitu1305@gmail.com int foo(int) @nogc { throw new Exception("huhu"); } void test() @nogc { try { foo(1); } catch(Exception e) { } } void main() { import std.stdio; import core.memory; auto stats1 = GC.stats(); test(); auto stats2 = GC.stats(); writeln(stats1); // Stats(0, 0, 0) writeln(stats2); // Stats(1376, 1047200, 1360) } Allocating the traceHandler still uses the GC -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply