mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)
This commit is contained in:
parent
77cd0428b6
commit
83235f7791
5 changed files with 6 additions and 5 deletions
2
Python/executor_cases.c.h
generated
2
Python/executor_cases.c.h
generated
|
@ -4210,6 +4210,8 @@
|
|||
|
||||
case _ERROR_POP_N: {
|
||||
oparg = CURRENT_OPARG();
|
||||
uint32_t target = (uint32_t)CURRENT_OPERAND();
|
||||
frame->instr_ptr = ((_Py_CODEUNIT *)_PyFrame_GetCode(frame)->co_code_adaptive) + target;
|
||||
stack_pointer += -oparg;
|
||||
GOTO_UNWIND();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue