mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-106140: Reorder some more fields to facilitate out-of-process inspection (#106148)
This commit is contained in:
parent
2d5a1c2811
commit
9126a6a9ce
1 changed files with 8 additions and 7 deletions
|
@ -103,14 +103,19 @@ struct _is {
|
||||||
basis. Also see _PyRuntimeState regarding the various mutex fields.
|
basis. Also see _PyRuntimeState regarding the various mutex fields.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The per-interpreter GIL, which might not be used. */
|
|
||||||
struct _gil_runtime_state _gil;
|
|
||||||
|
|
||||||
// Dictionary of the sys module
|
// Dictionary of the sys module
|
||||||
PyObject *sysdict;
|
PyObject *sysdict;
|
||||||
|
|
||||||
// Dictionary of the builtins module
|
// Dictionary of the builtins module
|
||||||
PyObject *builtins;
|
PyObject *builtins;
|
||||||
|
|
||||||
|
struct _ceval_state ceval;
|
||||||
|
|
||||||
|
struct _import_state imports;
|
||||||
|
|
||||||
|
/* The per-interpreter GIL, which might not be used. */
|
||||||
|
struct _gil_runtime_state _gil;
|
||||||
|
|
||||||
/* ---------- IMPORTANT ---------------------------
|
/* ---------- IMPORTANT ---------------------------
|
||||||
The fields above this line are declared as early as
|
The fields above this line are declared as early as
|
||||||
possible to facilitate out-of-process observability
|
possible to facilitate out-of-process observability
|
||||||
|
@ -147,12 +152,8 @@ struct _is {
|
||||||
struct _warnings_runtime_state warnings;
|
struct _warnings_runtime_state warnings;
|
||||||
struct atexit_state atexit;
|
struct atexit_state atexit;
|
||||||
|
|
||||||
struct _ceval_state ceval;
|
|
||||||
|
|
||||||
struct _obmalloc_state obmalloc;
|
struct _obmalloc_state obmalloc;
|
||||||
|
|
||||||
struct _import_state imports;
|
|
||||||
|
|
||||||
PyObject *audit_hooks;
|
PyObject *audit_hooks;
|
||||||
PyType_WatchCallback type_watchers[TYPE_MAX_WATCHERS];
|
PyType_WatchCallback type_watchers[TYPE_MAX_WATCHERS];
|
||||||
PyCode_WatchCallback code_watchers[CODE_MAX_WATCHERS];
|
PyCode_WatchCallback code_watchers[CODE_MAX_WATCHERS];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue