summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-20 17:48:21 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-20 17:48:21 +0000
commitbb17208353b2f15e0bf22099038f9ea336d6de2a (patch)
tree5c1ace6caa469990ceca08a4a829a4ea29250b21 /op.c
parent8a27f21b702728eba502a2ab9428475e0535d96d (diff)
downloadperl-bb17208353b2f15e0bf22099038f9ea336d6de2a.tar.gz
PVFMs don't need CvDEPTH, and PVCVs don't use SvIVX, so moving
xcv_depth into the IV union saves 4(ish) bytes per CV and format. "ish" because it was a long, but has been changed to I32 (along with the corresponding field in struct block_sub) so as not to enlarge the IV union on platforms where sizeof(long) > sizeof(IV), or struct block_sub where sizeof(long) > sizeof(I32) p4raw-id: //depot/perl@27247
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 85e88526f6..591ffa7969 100644
--- a/op.c
+++ b/op.c
@@ -4269,7 +4269,7 @@ Perl_cv_undef(pTHX_ CV *cv)
#endif
if (!CvISXSUB(cv) && CvROOT(cv)) {
- if (CvDEPTH(cv))
+ if (SvTYPE(cv) == SVt_PVCV && CvDEPTH(cv))
Perl_croak(aTHX_ "Can't undef active subroutine");
ENTER;