This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc/free & new/delete balance



> 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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]