summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2023-09-22 21:13:31 (GMT)
committerGitHub <noreply@github.com>2023-09-22 21:13:31 (GMT)
commitd5611f280403d19befe4a3e505b037d286cf798e (patch)
tree468f1560b4e67a67a579b98c9cc0dfd26bad47ce /Objects/codeobject.c
parent8ded34a1ff2d355e95213ab72493908f2ca25dd9 (diff)
downloadcpython-d5611f280403d19befe4a3e505b037d286cf798e.zip
cpython-d5611f280403d19befe4a3e505b037d286cf798e.tar.gz
cpython-d5611f280403d19befe4a3e505b037d286cf798e.tar.bz2
GH-107265: Add missing deoptimizations for ENTER_EXECUTOR's original opcode (GH-109420)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 20e5ded..f662b8e 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1505,7 +1505,7 @@ deopt_code(PyCodeObject *code, _Py_CODEUNIT *instructions)
int opcode = _Py_GetBaseOpcode(code, i);
if (opcode == ENTER_EXECUTOR) {
_PyExecutorObject *exec = code->co_executors->executors[instructions[i].op.arg];
- opcode = exec->vm_data.opcode;
+ opcode = _PyOpcode_Deopt[exec->vm_data.opcode];
instructions[i].op.arg = exec->vm_data.oparg;
}
assert(opcode != ENTER_EXECUTOR);