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

Re: perl@16433

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
May 6, 2002 16:32
Subject:
Re: perl@16433
Message ID:
20020507023215.S31692@alpha.hut.fi
On Tue, May 07, 2002 at 12:28:06AM +0100, Nicholas Clark wrote:
> 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

The Purify dumps show two leaks: the Newz() in the INIT:,
and the kbuf init.

> > 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

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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