This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: malloc/free & new/delete balance
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: malloc/free & new/delete balance
- From: John Carr <jfc at mit dot edu>
- Date: Mon, 06 Jul 1998 21:52:24 EDT
- Cc: ncm at cygnus dot com (Nathan Myers), egcs at cygnus dot com
> How about listing some minimum requirement, like:
>
> if an object is freed, and the next allocation is for an object of the
> same size, that allocation will succeed.
That rule prevents the runtime from releasing memory to the operating
system and also forces the runtime to use a different method to
allocate memory for its internal use.