1. Re: allocate() and free() Still Alive

Euman writes:
> In Borland C++ 5.5 there is this
>
> #include <malloc.h>
> int _heapmin(void);
>
> Releases unused heap areas.

Thanks.
WATCOM also has _heapmin().
The WATCOM docs say that only a block
at the very end of the heap can be freed back
to the O/S.

I'm still not sure if this is useful enough to make it a
language or library feature. With modern virtual memory
systems, if the O/S needs more memory, it can get it
by swapping out inactive pages. I guess there would
be fewer pages to swap out.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu