This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move the aliasing of B::IV::RV as B::PV::RV from XS to Perl code.
authorNicholas Clark <nick@ccl4.org>
Sun, 7 Nov 2010 09:56:50 +0000 (09:56 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 8 Nov 2010 07:55:09 +0000 (07:55 +0000)
commitff1a9fc06750e1a1a1480a987a9d24fd2f4824c7
tree364b09875a0ce7361efea10b5a140f90712cac01
parent2726813d9af5d50f1451663cd931317e7172da50
Move the aliasing of B::IV::RV as B::PV::RV from XS to Perl code.

This results in the same CV being used twice, rather than two CVs being created
that point to the same XS code implementation, shrinking the memory usage of B
slightly (168 bytes on this platform). It also is fewer source lines. :-)
ext/B/B.pm
ext/B/B.xs