GVs are stored in the pads in two code paths, newPADOP when called by
newGVOP, and ck_rvconst. Both of those now set the pad name to
&PL_sv_no, as of
c9859fbde1 and
c2bad63bb3. So GVs are now excluded
from the check a few lines below, just like constants.
* pad are anonymous subs, constants and GVs.
* The rest are created anew during cloning.
*/
- if (!PL_curpad[ix] || SvIMMORTAL(PL_curpad[ix])
- || IS_PADGV(PL_curpad[ix]))
+ if (!PL_curpad[ix] || SvIMMORTAL(PL_curpad[ix]))
continue;
namesv = namep[ix];
if (!(PadnamePV(namesv) &&