This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove SvIsCOW checks from mg.c:S_save_magic
authorFather Chrysostomos <sprout@cpan.org>
Wed, 7 Aug 2013 07:56:32 +0000 (00:56 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 14:41:26 +0000 (07:41 -0700)
commit3805b5fb04f8819edfb6bd5256d5eefd7b23e730
tree9e0f64fd00518bc7d03cd2d8c9cd72efe73cec40
parent0ffdaf1a47312f763d4610e9ec65c24561e957a5
Remove SvIsCOW checks from mg.c:S_save_magic

It no longer needs to worry about SvIsCOW.  This logic is left over
from when READONLY+FAKE was used for COWs.

Since it is possible for COWs to be read-only now, this logic is actu-
ally faulty, as it doesn’t temporarily stop read-only COWs from being
read-only, as it does for other read-only values.

This actually causes bugs with scalar-tied locked hash keys, which
croak on FETCH.
mg.c
t/op/tie.t