Re: testing malloc / free behaviour

2007-12-17 Thread David Ayers
David Wetzel schrieb: Hi, just run this and a top in a different terminal. If the memory use of the process goes down after the freeing... message, all is fine. It works as expected on Mac OS X Leopard and NetBSD 3.1 You might set your limits to unlimited before running this.

Re: testing malloc / free behaviour

2007-12-17 Thread David Wetzel
David Ayers wrote: http://www.gnu.org/software/libc/manual/html_node/Freeing-after-Malloc.html#Free ing-after-Malloc [http://tinyurl.com/yqh6n4] Occasionally, free can actually return memory to the operating system and make the process smaller. Usually, all it can do is allow a later call

testing malloc / free behaviour

2007-12-16 Thread David Wetzel
Hi, just run this and a top in a different terminal. If the memory use of the process goes down after the freeing... message, all is fine. It works as expected on Mac OS X Leopard and NetBSD 3.1 You might set your limits to unlimited before running this. Dave