https://github.com/python/cpython/commit/7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9
commit: 7fabcc727dee52a3e0dfe4f903ad414e93cf2dc9
branch: main
author: Ken Jin <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2024-04-30T21:51:59Z
summary:
gh-117657: Don't specialize RESUME_CHECK when specialization is disabled
(GH-118349)
files:
M Python/bytecodes.c
M Python/generated_cases.c.h
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 5bb7e1211385a5..18837aef74d78e 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 a5bb29385844d8..1444f5cdebba4b 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();
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]