diff options
author | Mark Shannon <mark@hotpy.org> | 2023-05-18 09:08:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 09:08:33 (GMT) |
commit | 68b5f08b72e02f62ec787bfbb7aa99bac661daec (patch) | |
tree | 58c0b0e5d860e81bb29e024f6b7e2e3b6f2aa365 /Python/ceval_macros.h | |
parent | 662aede68b0ea222cf3db4715b310e91c51b665f (diff) | |
download | cpython-68b5f08b72e02f62ec787bfbb7aa99bac661daec.zip cpython-68b5f08b72e02f62ec787bfbb7aa99bac661daec.tar.gz cpython-68b5f08b72e02f62ec787bfbb7aa99bac661daec.tar.bz2 |
GH-104580: Don't cache eval breaker in interpreter (GH-104581)
Move eval-breaker to the front of the interpreter state.
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r-- | Python/ceval_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index e92ff0b..fccf908 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -116,7 +116,7 @@ #define CHECK_EVAL_BREAKER() \ _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY(); \ - if (_Py_atomic_load_relaxed_int32(eval_breaker)) { \ + if (_Py_atomic_load_relaxed_int32(&tstate->interp->ceval.eval_breaker)) { \ goto handle_eval_breaker; \ } |