Memory allocation problem

bearophile bearophileHUGS at lycos.com
Sun Aug 9 12:51:46 PDT 2009


grauzone:
>Then what is there to complain?<

I have paid for 2 GB RAM, so I am allowed to desire a 1800 MB array :-)


>You know you must check return values.<

In real programs I check the return value of malloc, of course.


>The D allocation probably fails due to memory fragmentation (just a guess).<

The D program always fails, the C program always runs. So then it's a fragmentation that hurts the allocator of DMD only...?

Bye,
bearophile



More information about the Digitalmars-d mailing list