diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-20 17:48:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-20 17:48:21 +0000 |
commit | bb17208353b2f15e0bf22099038f9ea336d6de2a (patch) | |
tree | 5c1ace6caa469990ceca08a4a829a4ea29250b21 /op.c | |
parent | 8a27f21b702728eba502a2ab9428475e0535d96d (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |