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

Re: perl@16433

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
May 6, 2002 16:28
Subject:
Re: perl@16433
Message ID:
20020507002806.Z74344@plum.flirble.org
On Tue, May 07, 2002 at 01:34:21AM +0300, Jarkko Hietaniemi wrote:
> On Mon, May 06, 2002 at 11:21:47PM +0100, Nicholas Clark wrote:
> > On Mon, May 06, 2002 at 05:50:38PM +0300, Jarkko Hietaniemi wrote:
> > > - Storable finishing touches [Nicholas]
> > 
> > As Storable already passes a context object around to make itself thread
> > safe, and the leaking problem is only that the malloc()ed buffers:
> 
> ...and the root context.

Oh

> I thought that without ithreads (well, multiplicity) the root context
> is a static buffer.

Could be.
With threads it's stuffed into a scalar, which suggests that one cleanup
method is make a ref and bless it into a class with a DESTROY method.
But not tonight, as it is now bedtime.

[And I will be dreaming of waking to finding it all solved by Dave Mitchell
:-) Well, I can dream...]

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