develooper Front page | perl.beginners | Postings from August 2009

Re: AW: CGI and persistent data (without Storable)

Thread Previous | Thread Next
Steve Bertrand
August 28, 2009 05:57
Re: AW: CGI and persistent data (without Storable)
Message ID:
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 :)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About