summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2024-04-30 21:51:59 (GMT)
committerGitHub <noreply@github.com>2024-04-30 21:51:59 (GMT)
commit7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9 (patch)
tree507355493c7d150a39b10df32ead13646730e3a0
parentdc6b12d1b2ea26bb0323d932fa7b1a337eaca562 (diff)
downloadcpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.zip
cpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.tar.gz
cpython-7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9.tar.bz2
gh-117657: Don't specialize RESUME_CHECK when specialization is disabled (GH-118349)
-rw-r--r--Python/bytecodes.c2
-rw-r--r--Python/generated_cases.c.h2
2 files changed, 4 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 */
}
}
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index a5bb293..1444f5c 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -4955,7 +4955,9 @@
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 */
}
DISPATCH();
}