summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-19 20:05:43 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-19 20:06:36 +0100
commitddea3ea7e37dd9e47ccbeefed8302a04c561f972 (patch)
treeedc31a6aff6a82308424f4ff4fa174e02fa83e0e /pad.c
parent327014894ced3ae73d401ac084a318bdc616e5d8 (diff)
downloadperl-ddea3ea7e37dd9e47ccbeefed8302a04c561f972.tar.gz
Simpify logic in Perl_pad_free(): SvIsCOW() has the same semantics in all cases.
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/pad.c b/pad.c
index 568c8df67b..a68e202efb 100644
--- a/pad.c
+++ b/pad.c
@@ -1310,13 +1310,7 @@ Perl_pad_free(pTHX_ PADOFFSET po)
SvPADTMP_off(PL_curpad[po]);
#ifdef USE_ITHREADS
/* SV could be a shared hash key (eg bugid #19022) */
- if (
-#ifdef PERL_OLD_COPY_ON_WRITE
- !SvIsCOW(PL_curpad[po])
-#else
- !SvFAKE(PL_curpad[po])
-#endif
- )
+ if (!SvIsCOW(PL_curpad[po]))
SvREADONLY_off(PL_curpad[po]); /* could be a freed constant */
#endif
}