develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [perl #118139] Storable in DESTROY blocks

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
May 28, 2013 16:28
Subject:
Re: [perl #118139] Storable in DESTROY blocks
Message ID:
20130528162806.GO3729@plum.flirble.org
On Tue, May 28, 2013 at 06:23:26PM +0200, Leon Timmermans wrote:
> On Tue, May 28, 2013 at 6:17 PM, Nicholas Clark <nick@ccl4.org> wrote:
> > I'm not sure how much sanity it will cost to refactor this.
> 
> One fix that doesn't require too much refactoring may be to move it
> from a DESTROY method to free magic. Those are run much later.

Yes, that feels like a good start. I wonder if doing that is enough to
make Storable reliable during global destruction. The cause of the bug seems
to be solely that the thing that its context points to is getting wiped
during object destruction, rather than after it.

Nicholas Clark

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