in reply to Re^4: How to implement a Queue that doesn't leak memory?
in thread How to implement a Queue that doesn't leak memory?
> It would be interesting to know how and when this reallocation happens and if it's automatically done on C-level
I suggest you study your good friend ikegami's excellent Mini-Tutorial: Perl's Memory Management ... which concludes with:
You can't rely on memory being returned to the system, but it can happen ... if and when memory is returned to the OS is dependant on the memory allocation mechanism perl was compiled to use ... you are more likely to see memory being released to the OS on Windows
See also: Returning Memory back to the OS References
👁️🍾👍🦟
|
---|