develooper Front page | perl.perl5.porters | Postings from November 1999

Re: Behaviour of final cleanup

Thread Previous | Thread Next
Gurusamy Sarathy
November 17, 1999 09:56
Re: Behaviour of final cleanup
Message ID:
On Wed, 17 Nov 1999 17:48:01 +0100, Raphael Manfredi wrote:
># I don't understand the way Perl garbage collects its memory when it dies.
># It does not systematically call registered destructors (DESTROY) on objects.

This would be a bug.  If you have a short test case, that would be good
to see.

># At least with 5.005_03, which was the version in use when I wrote this.

The global destruction cleanup is not as systematic as it could be,
which makes it possible for destructors to reference freed memory
in the current implementation, because the current implementation
ignores reference counts during global destruction phase.

I think a saner way is possible.  Search the archives for "global
destruction" for details.


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