diff options
author | Mark Shannon <mark@hotpy.org> | 2024-04-24 13:41:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 13:41:30 (GMT) |
commit | 83235f7791fbe6ee2618192f2341de9cd22d0511 (patch) | |
tree | eacb89c202dbf8af6a9d3cc9f99b564397cf3182 /Python/bytecodes.c | |
parent | 77cd0428b698a743844179f7babead43b2794d77 (diff) | |
download | cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.zip cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.gz cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.bz2 |
GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 1f908a9..c31617d 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -4226,7 +4226,8 @@ dummy_func( EXIT_TO_TRACE(); } - tier2 op(_ERROR_POP_N, (unused[oparg] --)) { + tier2 op(_ERROR_POP_N, (target/2, unused[oparg] --)) { + frame->instr_ptr = ((_Py_CODEUNIT *)_PyFrame_GetCode(frame)->co_code_adaptive) + target; SYNC_SP(); GOTO_UNWIND(); } |