mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-107265: Ensure _PyCode_Quicken does not handle ENTER_EXECUTOR (gh-108460)
This commit is contained in:
parent
b32d4cad15
commit
d6ac5c7b10
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ _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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue