Skip to content

Commit 612ea96

Browse files
committed
Improve comment for ts->pystats member.
1 parent a48c7f6 commit 612ea96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Include/cpython/pystate.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ struct _ts {
213213
_PyRemoteDebuggerSupport remote_debugger_support;
214214

215215
#ifdef Py_STATS
216-
PyStats *pystats; // pointer PyStats structure, NULL if recording is off
216+
// Pointer PyStats structure, NULL if recording is off. For the
217+
// free-threaded build, the structure is per-thread (stored as a pointer
218+
// in _PyThreadStateImpl). For the default build, the structure is stored
219+
// in the PyInterpreterState structure (threads do not have their own
220+
// structure and all share the same per-interpreter structure).
221+
PyStats *pystats;
217222
#endif
218223
};
219224

0 commit comments

Comments
 (0)