And that critical size isn't very large. I cannot compile anymore : Unable to fork: Cannot allocate memory I cannot use separate compilation to mitigate the problem as some symbol are not emitted properly (so I get linker errors). Hopefully, dmd is fast because it doesn't use any GC.