Commit
756cb47730 added an if/else block in between ENTER/LEAVE, mov-
ing the existing code into the else block. But the if code (consist-
ing of newCONSTSUB) never needed to be surrounded by ENTER/LEAVE.
GvMULTI_on(gv); /* _was_ mentioned */
if (doproto) { /* Replicate part of newSUB here. */
CV *cv;
- ENTER;
if (has_constant) {
/* newCONSTSUB takes ownership of the reference from us. */
cv = newCONSTSUB_flags(stash, name, len, flags, has_constant);
if (exported_constant)
GvIMPORTED_CV_on(gv);
} else {
+ ENTER;
(void) start_subparse(0,0); /* Create empty CV in compcv. */
cv = PL_compcv;
GvCV_set(gv,cv);
+ LEAVE;
}
- LEAVE;
mro_method_changed_in(GvSTASH(gv)); /* sub Foo::bar($) { (shift) } sub ASDF::baz($); *ASDF::baz = \&Foo::bar */
CvGV_set(cv, gv);