On Sunday, 18 August 2013 at 12:07:02 UTC, zorran wrote:
on my machine (core i7, 16 gb ram, win7/64)
next code written core.exception.OutOfMemoryError:
enum long size= 1300_000_000;
auto arr = new byte[size];
                
but next code work fine:
enum long size= 1300_000_000;
byte * p = cast(byte *) malloc(size);
                
i compiled in 64 bit mode
i use keys: "dmc -c -m64 test.d"

Interesting... What happens if you use core.memory.GC.malloc?

Reply via email to