Skip to content

Commit 66b4d9c

Browse files
authored
gh-107265: Revert "Ensure _PyCode_Quicken does not handle ENTER_EXECUTOR" (#108485)
This reverts commit d6ac5c7. Reason: the assert we just added could be triggered (see issue).
1 parent 75903f2 commit 66b4d9c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/specialize.c

-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ _PyCode_Quicken(PyCodeObject *code)
300300
for (int i = 0; i < Py_SIZE(code); i++) {
301301
opcode = _Py_GetBaseOpcode(code, i);
302302
assert(opcode < MIN_INSTRUMENTED_OPCODE);
303-
// _PyCode_Quicken is only called when initializing a fresh code object.
304-
assert(opcode != ENTER_EXECUTOR);
305303
int caches = _PyOpcode_Caches[opcode];
306304
if (caches) {
307305
instructions[i + 1].cache = adaptive_counter_warmup();

0 commit comments

Comments
 (0)