diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-06-28 18:26:42 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2015-06-29 08:20:27 -0700 |
commit | b7adcee4dcd174053afc53e0295922072726eaa4 (patch) | |
tree | 716aa0d102a90980ddde10eb2da0c6e29122e2cc /op.c | |
parent | 60121127fb9d33a8ca4ab1e213b635fe63c8fa8c (diff) | |
download | perl-b7adcee4dcd174053afc53e0295922072726eaa4.tar.gz |
Remove PERL_OLD_COPY_ON_WRITE
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -11949,9 +11949,7 @@ Perl_ck_svconst(pTHX_ OP *o) SV * const sv = cSVOPo->op_sv; PERL_ARGS_ASSERT_CK_SVCONST; PERL_UNUSED_CONTEXT; -#ifdef PERL_OLD_COPY_ON_WRITE - if (SvIsCOW(sv)) sv_force_normal(sv); -#elif defined(PERL_NEW_COPY_ON_WRITE) +#ifdef PERL_NEW_COPY_ON_WRITE /* Since the read-only flag may be used to protect a string buffer, we cannot do copy-on-write with existing read-only scalars that are not already copy-on-write scalars. To allow $_ = "hello" to do COW with |