This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv.c: Remove redundant sv_force_normal calls from sv_2[iun]v
authorFather Chrysostomos <sprout@cpan.org>
Sun, 28 Oct 2012 06:42:09 +0000 (23:42 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 28 Oct 2012 09:04:57 +0000 (02:04 -0700)
commit733815618ef8cd7a97553bf797accda042f8249a
tree9a8f8fc691b1072c12d29a21f58b9b2cbb6f7d3b
parentcd84013aab030da47b76a44fb3f7b6016be85b78
sv.c: Remove redundant sv_force_normal calls from sv_2[iun]v

The previous commit made it possible to nummify a string whose SvLEN
is 0.  So we don’t need to run shared hash key scalars through
sv_force_normal before nummifying them.  We still need to run COW sca-
lars through sv_force_normal under PERL_OLD_COPY_ON_WRITE, as it uses
the IVX field for COW bookkeeping.  For simplicity’s sake, I’m not
bothering to distinguish shared hash keys scalars from other COW sca-
lars under PERL_OLD_COPY_ON_WRITE.
sv.c