Shawn H. Corey wrote:
> Steve Bertrand wrote:
>> My understanding has always been that when a perl script exits, any
>> memory that it can't free due to dangling pointers is doomed.
>>
>> This leaked memory is never released back to the OS, and is permanently
>> 'saved' for future invocations of other Perl programs.
>>
>> Perhaps I've mis-understood something along the way.
> 
> In Linux, when a process is terminated, all of its memory is returned to
> the system for use in another process.
> 
> You proposed method is unreliable since the system can move the process
> memory at any time.  If it does so, Perl will update all its references
> to match.  Since you proposed to store the reference as a number, it
> wouldn't be update should this happen.

Thanks Shawn,

I understand that doing something like this would be extremely volatile
and very risky, but to be honest, I'm beyond looking at it as something
useful, and more interested in knowing if it can be done :)

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to