8000 gh-107082: Fix instruction size computation for ENTER_EXECUTOR by gvanrossum · Pull Request #107256 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107082: Fix instruction size computation for ENTER_EXECUTOR #107256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rewrite for readability
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
gvanrossum and vstinner authored Jul 25, 2023
commit 7e8208cf525f5028e03475febf4275b67211d1cd
3 changes: 2 additions & 1 deletion Python/instrumentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ _PyInstruction_GetLength(PyCodeObject *code, int offset)
assert(opcode != 0);
assert(!is_instrumented(opcode));
if (opcode == ENTER_EXECUTOR) {
_PyExecutorObject *exec = code->co_executors->executors[_PyCode_CODE(code)[offset].op.arg];
int exec_index = _PyCode_CODE(code)[offset].op.arg;
_PyExecutorObject *exec = code->co_executors->executors[exec_index];
opcode = exec->vm_data.opcode;

}
Expand Down
0