help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to test memory allocation with new ?


From: Old Wolf
Subject: Re: How to test memory allocation with new ?
Date: 1 Nov 2004 16:29:32 -0800

Cosmin Calinescu <cosminc@nortelnetworks.com> wrote:
> If you have less then 2G of memory you're scrued. I don't think you do 
> what you intend to do.
> >         int n = 0x7FFFFFFF;
> >         char *pp = new char[n];

Many operating systems have "lazy allocation", they will honour
this request but then swap maniacally or kill the application
when it tries to actually use that memory.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]