[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.
Re: How to test memory allocation with new ?, Cosmin Calinescu, 2004/11/01
- Re: How to test memory allocation with new ?,
Old Wolf <=
Re: How to test memory allocation with new ?, Larry I Smith, 2004/11/01