Re: new and GC.malloc fail, core.stdc.malloc works

2014-06-26 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 25 June 2014 at 14:44:22 UTC, John Colvin wrote: On Tuesday, 24 June 2014 at 10:16:38 UTC, bearophile wrote: John Colvin: I'm getting OutOfMemoryErrors on some machines when calling GC.malloc (or new) for anything large (more than about 1GB), where core.stdc.malloc works fine.

Re: new and GC.malloc fail, core.stdc.malloc works

2014-06-25 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 24 June 2014 at 10:16:38 UTC, bearophile wrote: John Colvin: I'm getting OutOfMemoryErrors on some machines when calling GC.malloc (or new) for anything large (more than about 1GB), where core.stdc.malloc works fine. I think that when you go in territories where most people have

Re: new and GC.malloc fail, core.stdc.malloc works

2014-06-24 Thread bearophile via Digitalmars-d-learn
John Colvin: I'm getting OutOfMemoryErrors on some machines when calling GC.malloc (or new) for anything large (more than about 1GB), where core.stdc.malloc works fine. I think that when you go in territories where most people have not done much coding in D, like allocating than 1 GB in one

Re: new and GC.malloc fail, core.stdc.malloc works

2014-06-24 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 24 June 2014 at 10:06:10 UTC, John Colvin wrote: I'm getting OutOfMemoryErrors on some machines when calling GC.malloc (or new) for anything large (more than about 1GB), where core.stdc.malloc works fine. Anyone ever come accross this before? I suspect it's related to some system

new and GC.malloc fail, core.stdc.malloc works

2014-06-24 Thread John Colvin via Digitalmars-d-learn
I'm getting OutOfMemoryErrors on some machines when calling GC.malloc (or new) for anything large (more than about 1GB), where core.stdc.malloc works fine. Anyone ever come accross this before? I suspect it's related to some system memory monitor/management as it's only happening to me on sup