gv_init(_pvn) does not conceptually change anything. There was
already a subroutine there before the stub was upgraded to a gv with
a real cv.
The example in the comment:
sub Foo::bar($) { (shift) } sub ASDF::baz($); *ASDF::baz = \&Foo::bar
suggests that this was put in the wrong place to begin with. Glob
assignment already takes care of mro_method_changed_in, so calling
it beforehand when reifying the glob is redundant.
LEAVE;
}
- mro_method_changed_in(GvSTASH(gv)); /* sub Foo::bar($) { (shift) } sub ASDF::baz($); *ASDF::baz = \&Foo::bar */
CvGV_set(cv, gv);
CvFILE_set_from_cop(cv, PL_curcop);
CvSTASH_set(cv, PL_curstash);