1. Re: allocate() and free() Still Alive
- Posted by Robert Craig <rds at RAPIDEUPHORIA.COM>
Dec 03, 2000
-
Last edited Dec 04, 2000
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