develooper Front page | perl.perl5.porters | Postings from January 2010

Re: [patch 0/3] rework sv.c body-inventory mechanics

Thread Previous | Thread Next
From:
Jim Cromie
Date:
January 27, 2010 17:37
Subject:
Re: [patch 0/3] rework sv.c body-inventory mechanics
Message ID:
cfe85dfa1001271737v17145a84x285af0b3f6a571fc@mail.gmail.com
> commit a7179733aa0f30dad474caf74d3536af9222b79b
> Author: Jim Cromie <jim.cromie@gmail.com>
> Date:   Wed Jan 27 11:52:36 2010 -0700
>
>    change S_more_bodies to require NN reqid
>
>    pull this mapping out of S_more_bodies, move it into callers:
>       "void** const root = &PL_bodyroots[svtype]"
>
>    This lets us use S_more_bodies to thread free bodies onto any root,
>    not just those in the interpreter's PL_bodyroots[SVt_LAST]
>
>    The ~16 sv_type consumers call S_more_bodies via macros, adjust them
>    to pass &PL_bodyroot[svtype] as reqid.  This then transparently tracks
>    all arenas, allocated to all svtypes, in all interpreters.
>
>    The macro adjustments:
>    - rename del_body --> del_body_private.  Its 2nd arg always was root,
>      new-name states its usage better.  we keep old name too.
>    - comment on global/private distinction, and shuffle new/del-body macros.
>      del_*'s are simpler, and the visual organization is easier.

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