Skip to content

Commit 09de650

Browse files
Fidget-SpinnerSonicField
authored andcommitted
pythongh-117657: Don't specialize RESUME_CHECK when specialization is disabled (pythonGH-118349)
1 parent 6585a6f commit 09de650

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Python/bytecodes.c

+2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ dummy_func(
163163
if ((oparg & RESUME_OPARG_LOCATION_MASK) < RESUME_AFTER_YIELD_FROM) {
164164
CHECK_EVAL_BREAKER();
165165
}
166+
#if ENABLE_SPECIALIZATION
166167
FT_ATOMIC_STORE_UINT8_RELAXED(this_instr->op.code, RESUME_CHECK);
168+
#endif /* ENABLE_SPECIALIZATION */
167169
}
168170
}
169171

Python/generated_cases.c.h

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)