Skip to content

Commit 6f1bcc0

Browse files
committed
Move the new _ts struct member added in #158569 to the end of the struct so
it doesn't break ABI compatibility.
1 parent 5b28ebd commit 6f1bcc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Include/internal/pycore_tstate.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ typedef struct _PyThreadStateImpl {
5151
PyObject *asyncio_running_loop; // Strong reference
5252
PyObject *asyncio_running_task; // Strong reference
5353

54-
// Reused for the thread's lifetime; owns placeholders while they resolve.
55-
PyObject *lazy_imports;
56-
5754
// Distinguishes between yield and return from PyEval_EvalFrame().
5855
// See gen_send_ex2() in Objects/genobject.c
5956
enum {
@@ -106,6 +103,9 @@ typedef struct _PyThreadStateImpl {
106103
struct _PyJitTracerState *jit_tracer_state;
107104
#endif
108105

106+
// Reused for the thread's lifetime; owns placeholders while they resolve.
107+
PyObject *lazy_imports;
108+
109109
#ifdef Py_GIL_DISABLED
110110
// gh-144438: Add padding to ensure that the fields above don't share a
111111
// cache line with other allocations.

0 commit comments

Comments
 (0)