in reply to Re: Memory is not released back to operating systemin thread Memory is not released back to operating system
Elda Taluta; Sarks Sark; Ark ArksMy deviantART gallery
No, it defers to the implementation of the C runtime library malloc.
Though I wouldn't recommend it unless you are desperate, it is possible to change the "release memory to the OS" behaviour by building Perl using a custom malloc.
This has been discussed here many times before, see for example: Not able to release memory and How to return unused memory to OS?.
From my testing across a number of OSes, I would expect only Linux and Windows to return "large" blocks of memory back to the OS. I would be interested to learn what operating system the OP is running on.
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (11 votes). Check out past polls.