This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In sv.c, _all_ {new,del}_X* macros can be *_body_allocated.
authorNicholas Clark <nick@ccl4.org>
Mon, 25 Jan 2010 10:53:33 +0000 (10:53 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 20 May 2010 15:08:47 +0000 (16:08 +0100)
commit65ac1738675fbcf49a4c9d625c0c43dd73e6ff2f
tree66efc2d82eaf2b79454284e998e3eb6e7cea7a49
parentef01b67f31004ca818c73987384945a0fea605d6
In sv.c, _all_ {new,del}_X* macros can be *_body_allocated.

Previously those where bodies_by_type[sv_type].offset was zero were using
{new,del}_body_typed. However, the optimiser can spot this, and generates the
same object code. This allows simplification of the C code, and more
flexibility to rearrange the structures without generating bugs.
sv.c