diff options
author | Ken Jin <kenjin@python.org> | 2024-04-30 21:51:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 21:51:59 (GMT) |
commit | 7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9 (patch) | |
tree | 507355493c7d150a39b10df32ead13646730e3a0 /Python/bytecodes.c | |
parent | dc6b12d1b2ea26bb0323d932fa7b1a337eaca562 (diff) | |
download | cpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.zip cpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.tar.gz cpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.tar.bz2 |
gh-117657: Don't specialize RESUME_CHECK when specialization is disabled (GH-118349)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 5bb7e12..18837ae 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -163,7 +163,9 @@ dummy_func( if ((oparg & RESUME_OPARG_LOCATION_MASK) < RESUME_AFTER_YIELD_FROM) { CHECK_EVAL_BREAKER(); } + #if ENABLE_SPECIALIZATION FT_ATOMIC_STORE_UINT8_RELAXED(this_instr->op.code, RESUME_CHECK); + #endif /* ENABLE_SPECIALIZATION */ } } |