[phobos] phobos commit, revision 2331

Jonathan M Davis jmdavisProg at gmx.com
Mon Jan 17 03:15:10 PST 2011


On Friday 14 January 2011 16:10:03 Sean Kelly wrote:
> Sounds like the Windows memory manager is just a bit more prone to
> fragmentation, or something like that.

Well, it's definitely the case that Windows is using more memory, but I'm 
wondering if part of the problem is that Windows creates one program to run all 
of the unit tests whereas it looks like the posix makefile creates separate 
programs for each module (I _think_ that that's what it's doing from the 
behavior that I see, but I'm far from an expert at reading makefiles). So, dmd 
_might_ run out of memory on Linux if it were to build all of the modules at 
once for unit testing instead of doing them separately. However, for some 
reason, dmd on Windows seems to run out of memory at a little over 900MB of 
memory consumed whereas I've definitely seen dmd on Linux hit at least the 2 or 3 
GB mark when running out of memory ( 
http://d.puremagic.com/issues/show_bug.cgi?id=4984 ). So, I don't know what's 
going on there.

Regardless, dmd obviously has issues with using up to much memory when dealing 
with CTFE or templates - whether on Windows or Linux -  though it does appear to 
have more trouble on Windows than on Linux.

- Jonathan M Davis


More information about the phobos mailing list