Skip to content

Commit f4d7149

Browse files
committed
Fix incorrect edit and optimizer check.
1 parent 1c91a5a commit f4d7149

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4233,7 +4233,7 @@ dummy_func(
42334233
#endif
42344234
uintptr_t eval_breaker = _Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker);
42354235
EXIT_IF(eval_breaker & _PY_EVAL_EVENTS_MASK);
4236-
EXIT_IF(eval_breaker == FT_ATOMIC_LOAD_UINTPTR_ACQUIRE(_PyFrame_GetCode(frame)->_co_instrumentation_version));
4236+
assert(eval_breaker == FT_ATOMIC_LOAD_UINTPTR_ACQUIRE(_PyFrame_GetCode(frame)->_co_instrumentation_version));
42374237
}
42384238

42394239
tier2 op(_EVAL_BREAKER_EXIT, (--)) {

Python/executor_cases.c.h

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

Python/optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,7 @@ sanity_check(_PyExecutorObject *executor)
10861086
CHECK(
10871087
opcode == _DEOPT ||
10881088
opcode == _SIDE_EXIT ||
1089+
opcode == _EVAL_BREAKER_EXIT ||
10891090
opcode == _ERROR_POP_N);
10901091
if (opcode == _SIDE_EXIT) {
10911092
CHECK(inst->format == UOP_FORMAT_EXIT);

0 commit comments

Comments
 (0)