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).
This commit is contained in:
parent
75903f29f6
commit
66b4d9c9f0
@ -300,8 +300,6 @@ _PyCode_Quicken(PyCodeObject *code)
|
|||||||
for (int i = 0; i < Py_SIZE(code); i++) {
|
for (int i = 0; i < Py_SIZE(code); i++) {
|
||||||
opcode = _Py_GetBaseOpcode(code, i);
|
opcode = _Py_GetBaseOpcode(code, i);
|
||||||
assert(opcode < MIN_INSTRUMENTED_OPCODE);
|
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];
|
int caches = _PyOpcode_Caches[opcode];
|
||||||
if (caches) {
|
if (caches) {
|
||||||
instructions[i + 1].cache = adaptive_counter_warmup();
|
instructions[i + 1].cache = adaptive_counter_warmup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user