[phobos] Phobos unit tests running out of memory

Andrei Alexandrescu andrei at erdani.com
Tue Sep 4 15:07:41 PDT 2012

On 9/4/12 9:38 PM, Rainer Schuetze wrote:
> IIRC it was removed because compile times more than doubled.

That always struck me as a simple parameter choosing problem. Can't we 
set the limit at which the GC enters in action high enough so only the 
few programs that really need a lot of RAM actually incur a collection? 
What am I missing?

> Regarding the bail out with less than 1 GB allocated I suspect that the
> dmc runtime uses VirtualAlloc with sizes below the allocation
> granularity (which is 64kB on 32-bit windows). This waists virtual
> address space, so another allocation fails even if the actually
> allocated physical memory is well below the 2GB limit.
> The MS-cl-compiled version of dmd does not exhibit this problem (and
> compiles D code considerably faster).

Interesting. Can we fix that?


More information about the phobos mailing list