[Issue 10906] [2.064 git-head] Out of memory compiling Phobos on Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 27 17:36:33 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10906



--- Comment #5 from Orvid King <blah38621 at gmail.com> 2013-08-27 17:36:32 PDT ---
If the compiler attempts to use more than 2GB of virtual memory (including all
loaded libraries), then windows will throw an OOM error for exe's which aren't
marked as Large Address Aware. (such as dmd) As far as I know, posix systems
don't have this limitation and can use the full 4gb of the 32-bit address space
without needing to set a flag on the executable. I've managed to trigger this
error compiling one of my larger libraries (the arguments actually have to be
written to file before they can be passed to dmd, otherwise the command line is
too long) it ended up taking roughly 2.5gb of RAM (after I set the Large
Address Aware flag) for 2.63.2 to compile my 3.8mb across 1.3k heavily
interdependent modules into a static library. Perhaps the Large Address Aware
flag should be set by default on dmd?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list