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

Re: [perl #118139] Storable in DESTROY blocks

Thread Previous | Thread Next
Nicholas Clark
May 28, 2013 16:28
Re: [perl #118139] Storable in DESTROY blocks
Message ID:
On Tue, May 28, 2013 at 06:23:26PM +0200, Leon Timmermans wrote:
> On Tue, May 28, 2013 at 6:17 PM, Nicholas Clark <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About