develooper Front page | perl.perl6.internals | Postings from February 2001

Re: PDD 2, vtables

Thread Previous | Thread Next
From:
Alan Burlison
Date:
February 18, 2001 16:45
Subject:
Re: PDD 2, vtables
Message ID:
3A906C9A.F5F2A31C@uk.sun.com
Dan Sugalski wrote:

> >If PMC is a pointer to a structure, "new" will need to allocate memory for a
> >new structure, and hence the value of mypmc will have to change.
> 
> Nope. PMC structures will be parcelled out from arenas and not malloc'd,
> and they won't be freed and re-malloced much. If we're passing in a PMC
> pointer, we won't be reallocating the memory pointed to--rather we'll be
> reusing it.

So how do you get hold of a PMC from the arena in the first place?

Alan Burlison

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