Skip to content

Commit

Permalink
pythongh-107265: Revert "Ensure _PyCode_Quicken does not handle ENTER…
Browse files Browse the repository at this point in the history
…_EXECUTOR" (python#108485)

This reverts commit d6ac5c7.

Reason: the assert we just added could be triggered (see issue).
  • Loading branch information
corona10 authored Aug 25, 2023
1 parent 75903f2 commit 66b4d9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 66b4d9c

Please sign in to comment.