in reply to Re: memory deallocation
in thread memory deallocation

Actually some OSen do allow you to shrink your process size with sbrk (FreeBSD for one). I believe if your perl is using the system malloc you'll get this behavior there (FreeBSD). But in general you should only count on the behavior described above.

Replies are listed 'Best First'.
Re^3: memory deallocation
by ikegami (Patriarch) on Oct 01, 2007 at 14:40 UTC
    Windows is such a platform too. On Windows ActivePerl 5.8.8, the undef causes the memory usage to go from 171MB to 149MB. I wonder why so little memory is released.