free() does not physically trim/reclaim memory

Florian Weimer fweimer@redhat.com
Fri Sep 2 11:44:00 GMT 2016


On 09/01/2016 08:24 PM, shuxin yang wrote:
>     In my application, I need to call mmap() a block right after BSS in
> order to prevent heap from growing.

You cannot rely that this has any observable effect.  Why do you need to 
do this?

Thanks,
Florian



More information about the Libc-help mailing list