Re: Funny thing whith malloc/free...

Jim Nance (jlnance@avanticorp.com)
Mon, 11 Nov 1996 09:38:38 -0500 (EST)

> We found out that the process size reported by ps never went
> down... It did not increase when the size asked for was smaller than the
> freed space (so free was working OK), but the process never shrunk!

This is the way most implementations of malloc and free work. When you free
memory, it goes into a free pool, but it is not returned to the OS. This
behavior is dependent on the implementation of malloc() and free(). It
is not forced either way by the kernel.

Jim

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices