develooper Front page | perl.perl5.porters | Postings from December 2010

[perl #36347] Object destruction incomplete

Thread Next
From:
Father Chrysostomos via RT
Date:
December 19, 2010 14:31
Subject:
[perl #36347] Object destruction incomplete
Message ID:
rt-3.6.HEAD-17624-1292797907-757.36347-15-0@perl.org
On Tue Dec 14 15:57:54 2010, davem wrote:
> On Sun, Dec 12, 2010 at 01:00:17PM -0800, Father Chrysostomos via RT
wrote:
> > On Tue Jun 21 06:52:36 2005, nicholas wrote:
> > > Should we replace the use of do_clean_named_objs() with a routine that
> > > searches directly for any remaining objects, and directly reduces
> > >    their
> > > reference counts?
> > 
> > Doing so would allow destructors to see freed SVs.
> > 
> > Instead, how’s this patch? It still needs tests and a commit message.
> 
> Looks plausible. I don't understand why you skip $STDOUT and $STDERR
> though.

do_clean_named_io_objs does the same thing. I thought it was so that
destructors would be able to warn().
(And I thought you wrote that code, too.)



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