File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,8 @@ struct _is {
283
283
284
284
/* the initial PyInterpreterState.threads.head */
285
285
_PyThreadStateImpl _initial_thread ;
286
+ // _initial_thread should be the last field of PyInterpreterState.
287
+ // See https://github.com/python/cpython/issues/127117.
286
288
};
287
289
288
290
Original file line number Diff line number Diff line change @@ -169,6 +169,12 @@ typedef struct pyruntimestate {
169
169
struct _Py_unicode_runtime_state unicode_state ;
170
170
struct _types_runtime_state types ;
171
171
172
+ #if defined(__EMSCRIPTEN__ ) && defined(PY_CALL_TRAMPOLINE )
173
+ // Used in "Python/emscripten_trampoline.c" to choose between type
174
+ // reflection trampoline and EM_JS trampoline.
175
+ bool wasm_type_reflection_available ;
176
+ #endif
177
+
172
178
/* All the objects that are shared by the runtime's interpreters. */
173
179
struct _Py_cached_objects cached_objects ;
174
180
struct _Py_static_objects static_objects ;
@@ -189,13 +195,8 @@ typedef struct pyruntimestate {
189
195
190
196
/* _PyRuntimeState.interpreters.main */
191
197
PyInterpreterState _main_interpreter ;
192
-
193
- #if defined(__EMSCRIPTEN__ ) && defined(PY_CALL_TRAMPOLINE )
194
- // Used in "Python/emscripten_trampoline.c" to choose between type
195
- // reflection trampoline and EM_JS trampoline.
196
- bool wasm_type_reflection_available ;
197
- #endif
198
-
198
+ // _main_interpreter should be the last field of _PyRuntimeState.
199
+ // See https://github.com/python/cpython/issues/127117.
199
200
} _PyRuntimeState ;
200
201
201
202
You can’t perform that action at this time.
0 commit comments