The following program:
---------------------------
import std.stdio;
import core.memory;
void main()
{
GC.disable();
}
-----------------------
when run prints:
disable()
enable()
disable()
fullcollect()
where gc/gc.d has printf's put in disable(), enable(), and fullcollect().
Comment #1 by yebblies — 2013-12-19T21:19:35Z
I don't think GC.disable should prevent the final collection from happening.
Comment #2 by robert.schadek — 2024-12-07T13:33:13Z