Skip to content

Commit 24858cf

Browse files
committed
Put new fields at the end of _PyThreadStateImpl
1 parent fa01bf8 commit 24858cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Include/internal/pycore_tstate.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ typedef struct _PyThreadStateImpl {
3737
uintptr_t c_stack_soft_limit;
3838
uintptr_t c_stack_hard_limit;
3939

40-
// PyUnstable_ThreadState_ResetStackProtection() values
41-
uintptr_t c_stack_init_base;
42-
uintptr_t c_stack_init_top;
43-
4440
PyObject *asyncio_running_loop; // Strong reference
4541
PyObject *asyncio_running_task; // Strong reference
4642

@@ -80,6 +76,10 @@ typedef struct _PyThreadStateImpl {
8076
Py_ssize_t reftotal; // this thread's total refcount operations
8177
#endif
8278

79+
// PyUnstable_ThreadState_ResetStackProtection() values
80+
uintptr_t c_stack_init_base;
81+
uintptr_t c_stack_init_top;
82+
8383
} _PyThreadStateImpl;
8484

8585
#ifdef __cplusplus

0 commit comments

Comments
 (0)