Front page | perl.perl5.porters |
Postings from May 2002
From: Jarkko Hietaniemi
May 6, 2002 16:32
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.
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