diff options
| author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-07-31 21:18:38 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-31 21:18:38 (GMT) |
| commit | dfb55d9d7f9349582a2077f87e95c8f9d5e2ebd4 (patch) | |
| tree | 31be7921d9fd6b7254055d357e365f9e287f7768 /Python/executor_cases.c.h | |
| parent | 5e584eb704d656c9a6a648dadda63237706287db (diff) | |
| download | cpython-dfb55d9d7f9349582a2077f87e95c8f9d5e2ebd4.zip cpython-dfb55d9d7f9349582a2077f87e95c8f9d5e2ebd4.tar.gz cpython-dfb55d9d7f9349582a2077f87e95c8f9d5e2ebd4.tar.bz2 | |
Use tstate->interp to get the interpreter state in bytecodes.c (GH-107506)
Diffstat (limited to 'Python/executor_cases.c.h')
| -rw-r--r-- | Python/executor_cases.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index c2f0d0a..ed7cf4c 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2154,7 +2154,7 @@ total_args++; } DEOPT_IF(total_args != 1, CALL); - PyInterpreterState *interp = _PyInterpreterState_GET(); + PyInterpreterState *interp = tstate->interp; DEOPT_IF(callable != interp->callable_cache.len, CALL); STAT_INC(CALL, hit); PyObject *arg = args[0]; @@ -2189,7 +2189,7 @@ total_args++; } DEOPT_IF(total_args != 2, CALL); - PyInterpreterState *interp = _PyInterpreterState_GET(); + PyInterpreterState *interp = tstate->interp; DEOPT_IF(callable != interp->callable_cache.isinstance, CALL); STAT_INC(CALL, hit); PyObject *cls = args[1]; |
