Skip to content

Commit a07bf7d

Browse files
committed
Move new _ts member to the end to not mess up remote debuggers' ideas of the
struct's layout. (The struct is only created by the runtime, and the new field only used by the runtime, so it should be safe.)
1 parent a812905 commit a07bf7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/cpython/pystate.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ struct _ts {
180180
_PyStackChunk *datastack_chunk;
181181
PyObject **datastack_top;
182182
PyObject **datastack_limit;
183-
_PyStackChunk *datastack_cached_chunk;
184183
/* XXX signal handlers should also be here */
185184

186185
/* The following fields are here to avoid allocation during init.
@@ -209,6 +208,8 @@ struct _ts {
209208
*/
210209
PyObject *threading_local_sentinel;
211210
_PyRemoteDebuggerSupport remote_debugger_support;
211+
212+
_PyStackChunk *datastack_cached_chunk;
212213
};
213214

214215
/* other API */

0 commit comments

Comments
 (0)