Disabling GC in D
Brad Anderson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 21 13:59:42 PST 2016
On Thursday, 21 January 2016 at 21:54:36 UTC, Dibyendu Majumdar
wrote:
> Is there a way to disable GC in D?
> I am aware of the @nogc qualifier but I would like to
> completely disable GC for the whole app/library.
>
> Regards
> Dibyendu
GC.disable();
This prevents the garbage collector from running but your program
will still allocate using the GC's managed memory (use the
command line switch -vgc to see all the allocation points). It
will just never free memory.
More information about the Digitalmars-d-learn
mailing list