summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_interp.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_interp.h')
-rw-r--r--Include/internal/pycore_interp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h
index bd6a9f2..91c473e 100644
--- a/Include/internal/pycore_interp.h
+++ b/Include/internal/pycore_interp.h
@@ -48,6 +48,11 @@ struct _Py_long_state {
*/
struct _is {
+ /* This struct countains the eval_breaker,
+ * which is by far the hottest field in this struct
+ * and should be placed at the beginning. */
+ struct _ceval_state ceval;
+
PyInterpreterState *next;
int64_t id;
@@ -109,8 +114,6 @@ struct _is {
// Dictionary of the builtins module
PyObject *builtins;
- struct _ceval_state ceval;
-
struct _import_state imports;
/* The per-interpreter GIL, which might not be used. */