On Thu, 08 Nov 2018 01:49:49 +1300, rikki cattermole wrote: > On 08/11/2018 1:46 AM, Patrick Schluter wrote: >> Now that the compiler is completely in D, wouldn't it be a good idea to >> activate the GC in the compiler. I know that it requires some care for >> bootstrapping the compiler when there are dependencies to the D >> runtime, >> but the compiler would be an excellent example of the advantage of the >> GC (i.e. dumb fast allocations as long as there's memory, collection >> when no memory left which is miles away better than to get OOM-killed). > > No, that would be a bad idea currently. > > https://issues.dlang.org/show_bug.cgi?id=18811
That issue describes a memory leak. A memory leak of half a megabyte per full compiler invocation on a small file should still result in a lot of code being compilable on low-end machines that currently isn't.
