summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-05-18 09:08:33 (GMT)
committerGitHub <noreply@github.com>2023-05-18 09:08:33 (GMT)
commit68b5f08b72e02f62ec787bfbb7aa99bac661daec (patch)
tree58c0b0e5d860e81bb29e024f6b7e2e3b6f2aa365 /Python/ceval_macros.h
parent662aede68b0ea222cf3db4715b310e91c51b665f (diff)
downloadcpython-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.h2
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; \
}