8000 gh-117657: Don't specialize RESUME_CHECK when specialization is disab… · python/cpython@7fabcc7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fabcc7

Browse files
gh-117657: Don't specialize RESUME_CHECK when specialization is disabled (GH-118349)
1 parent dc6b12d commit 7fabcc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0