[3.14] gh-140104: Revert "Set next_instr properly in the JIT during exceptions (GH-140233) (GH-140687)" (#140890)

Revert "[3.14] gh-140104: Set next_instr properly in the JIT during exceptions (GH-140233) (GH-140687)"

This reverts commit 2e21672803.
This commit is contained in:
Ken Jin 2025-11-02 02:41:01 +08:00 committed by GitHub
parent ab1fdf3d7c
commit 4d68b758fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 26 deletions

View file

@ -368,9 +368,7 @@ do { \
frame = tstate->current_frame; \
stack_pointer = _PyFrame_GetStackPointer(frame); \
if (next_instr == NULL) { \
/* gh-140104: The exception handler expects frame->instr_ptr
to after this_instr, not this_instr! */ \
next_instr = frame->instr_ptr + 1; \
next_instr = frame->instr_ptr; \
JUMP_TO_LABEL(error); \
} \
DISPATCH(); \