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

Re: Behaviour of final cleanup

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
November 17, 1999 09:56
Subject:
Re: Behaviour of final cleanup
Message ID:
199911171803.KAA28964@activestate.com
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.


Sarathy
gsar@ActiveState.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About