[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    Re: Embedding Perl but redefining its malloc()
From:       Nicholas Clark <nick () ccl4 ! org>
Date:       2009-09-29 14:22:57
Message-ID: 20090929142257.GC60303 () plum ! flirble ! org
[Download RAW message or body]

On Tue, Sep 29, 2009 at 08:56:37AM -0500, David Nicol wrote:
> On Sun, Sep 27, 2009 at 4:24 AM, Raphael Manfredi
> <Raphael_Manfredi@pobox.com> wrote:
> >  It's not necessarily a bad idea to make the two orthogonal
> > though, as memory allocation is something belonging to a lower layer
> > than dynamically binding language routines to OS routines.
> 
> One of the things that would become possible after organizing memory
> allocation to consistently use an API would be building perl with the
> Boehm garbage collector and ifdeffing out all the reference counting.
> For benchmarking purposes.

You're welcome to do that right now, but you'll find that no lexical
filehandles are closed when they go out of scope, and no DESTROY methods
will be called.

At which point Advice from Klortho #11912 clearly applies.

Possibly also #11961, but I don't know the performance characteristics of
the Boehm GC. :-)

Nicholas Clark
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic