Skip to content

Commit

Permalink
related to [perl #113060] assert CopSTASH(cx->blk_oldcop)
Browse files Browse the repository at this point in the history
HvNAME_HEK((HV*)CopSTASH(cx->blk_oldcop)) does some implicit assumptions, which should
better be asserted. Also record CX pp_caller reads besides PUSH and POP.
  • Loading branch information
Reini Urban authored and Father Chrysostomos committed May 29, 2012
1 parent 014243a commit fb55fee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pp_ctl.c
Expand Up @@ -1897,6 +1897,9 @@ PP(pp_caller)
RETURN;
}

DEBUG_CX("CALLER");
assert(CopSTASHPV(cx->blk_oldcop));
assert(SvOOK((HV*)CopSTASH(cx->blk_oldcop)));
stash_hek = HvNAME_HEK((HV*)CopSTASH(cx->blk_oldcop));
if (GIMME != G_ARRAY) {
EXTEND(SP, 1);
Expand Down

0 comments on commit fb55fee

Please sign in to comment.