summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-08-25 15:23:39 (GMT)
committerGitHub <noreply@github.com>2023-08-25 15:23:39 (GMT)
commit66b4d9c9f0b8a935b5d464abd2f6ee0253832fd9 (patch)
tree5bdf6fd895352cbb1979f481e81208fef8926acc
parent75903f29f6fed718d06412f5a35105a6952961ce (diff)
downloadcpython-66b4d9c9f0b8a935b5d464abd2f6ee0253832fd9.zip
cpython-66b4d9c9f0b8a935b5d464abd2f6ee0253832fd9.tar.gz
cpython-66b4d9c9f0b8a935b5d464abd2f6ee0253832fd9.tar.bz2
gh-107265: Revert "Ensure _PyCode_Quicken does not handle ENTER_EXECUTOR" (#108485)
This reverts commit d6ac5c7b105fe57266bd71248e3ada41fedb5ba9. Reason: the assert we just added could be triggered (see issue).
-rw-r--r--Python/specialize.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index fac3c3e..a467f16 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -300,8 +300,6 @@ _PyCode_Quicken(PyCodeObject *code)
for (int i = 0; i < Py_SIZE(code); i++) {
opcode = _Py_GetBaseOpcode(code, i);
assert(opcode < MIN_INSTRUMENTED_OPCODE);
- // _PyCode_Quicken is only called when initializing a fresh code object.
- assert(opcode != ENTER_EXECUTOR);
int caches = _PyOpcode_Caches[opcode];
if (caches) {
instructions[i + 1].cache = adaptive_counter_warmup();