There was an error while loading. Please reload this page.
1 parent 1c8fe9b commit 92b493dCopy full SHA for 92b493d
1 file changed
Python/instrumentation.c
@@ -276,6 +276,12 @@ _PyInstruction_GetLength(PyCodeObject *code, int offset)
276
}
277
assert(opcode != 0);
278
assert(!is_instrumented(opcode));
279
+ if (opcode == ENTER_EXECUTOR) {
280
+ _PyExecutorObject *exec = code->co_executors->executors[_PyCode_CODE(code)[offset].op.arg];
281
+ opcode = exec->vm_data.opcode;
282
+
283
+ }
284
+ assert(opcode != ENTER_EXECUTOR);
285
assert(opcode == _PyOpcode_Deopt[opcode]);
286
return 1 + _PyOpcode_Caches[opcode];
287
0 commit comments