develooper Front page | perl.perl5.porters | Postings from September 2009

Re: Embedding Perl but redefining its malloc()

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
September 29, 2009 07:23
Subject:
Re: Embedding Perl but redefining its malloc()
Message ID:
20090929142257.GC60303@plum.flirble.org
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

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