Skip to content

Commit 8adaf4d

Browse files
merge from upstream
1 parent b5a9b07 commit 8adaf4d

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5392,10 +5392,7 @@ dummy_func(
53925392

53935393
tier2 op(_ERROR_POP_N, (target/2 --)) {
53945394
assert(oparg == 0);
5395-
_Py_CODEUNIT *current_instr = _PyFrame_GetBytecode(frame) + target;
5396-
_Py_CODEUNIT *next_instr = current_instr + 1 + _PyOpcode_Caches[_PyOpcode_Deopt[current_instr->op.code]];
5397-
// gh-140104: The exception handler expects frame->instr_ptr to be pointing to next_instr, not this_instr!
5398-
frame->instr_ptr = next_instr;
5395+
frame->instr_ptr = _PyFrame_GetBytecode(frame) + target;
53995396
SYNC_SP();
54005397
GOTO_TIER_ONE(NULL);
54015398
}

Python/executor_cases.c.h

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,6 @@ uop_optimize(
13521352
assert(length <= UOP_MAX_TRACE_LENGTH);
13531353

13541354
// Check executor coldness
1355-
PyThreadState *tstate = PyThreadState_Get();
13561355
// It's okay if this ends up going negative.
13571356
if (--tstate->interp->executor_creation_counter == 0) {
13581357
_Py_set_eval_breaker_bit(tstate, _PY_EVAL_JIT_INVALIDATE_COLD_BIT);

0 commit comments

Comments
 (0)