@@ -24,36 +24,42 @@ extern PyTypeObject _PyExc_MemoryError;
24
24
#define _PyRuntimeState_INIT (runtime ) \
25
25
{ \
26
26
.debug_offsets = { \
27
- .rs_finalizing = offsetof(_PyRuntimeState, _finalizing), \
28
- .rs_interpreters_head = offsetof(_PyRuntimeState, interpreters.head), \
29
- \
30
- .is_next = offsetof(PyInterpreterState, next), \
31
- .is_threads_head = offsetof(PyInterpreterState, threads.head), \
32
- .is_gc = offsetof(PyInterpreterState, gc), \
33
- .is_imports_modules = offsetof(PyInterpreterState, imports.modules), \
34
- .is_sysdict = offsetof(PyInterpreterState, sysdict), \
35
- .is_builtins = offsetof(PyInterpreterState, builtins), \
36
- .is_ceval_gil = offsetof(PyInterpreterState, ceval.gil), \
37
- \
38
- .ts_prev = offsetof(PyThreadState, prev), \
39
- .ts_next = offsetof(PyThreadState, next), \
40
- .ts_interp = offsetof(PyThreadState, interp), \
41
- .ts_cframe = offsetof(PyThreadState, cframe), \
42
- .ts_thread_id = offsetof(PyThreadState, thread_id), \
43
- \
44
- .fo_previous = offsetof(_PyInterpreterFrame, previous), \
45
- .fo_executable = offsetof(_PyInterpreterFrame, f_executable), \
46
- .fo_prev_instr = offsetof(_PyInterpreterFrame, prev_instr), \
47
- .fo_localsplus = offsetof(_PyInterpreterFrame, localsplus), \
48
- .fo_owner = offsetof(_PyInterpreterFrame, owner), \
49
- \
50
- .co_filename = offsetof(PyCodeObject, co_filename), \
51
- .co_name = offsetof(PyCodeObject, co_name), \
52
- .co_linetable = offsetof(PyCodeObject, co_linetable), \
53
- .co_firstlineno = offsetof(PyCodeObject, co_firstlineno), \
54
- .co_argcount = offsetof(PyCodeObject, co_argcount), \
55
- .co_localsplusnames = offsetof(PyCodeObject, co_localsplusnames), \
56
- .co_co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
27
+ .runtime_state = { \
28
+ .finalizing = offsetof(_PyRuntimeState, _finalizing), \
29
+ .interpreters_head = offsetof(_PyRuntimeState, interpreters.head), \
30
+ }, \
31
+ .interpreter_state = { \
32
+ .next = offsetof(PyInterpreterState, next), \
33
+ .threads_head = offsetof(PyInterpreterState, threads.head), \
34
+ .gc = offsetof(PyInterpreterState, gc), \
35
+ .imports_modules = offsetof(PyInterpreterState, imports.modules), \
36
+ .sysdict = offsetof(PyInterpreterState, sysdict), \
37
+ .builtins = offsetof(PyInterpreterState, builtins), \
38
+ .ceval_gil = offsetof(PyInterpreterState, ceval.gil), \
39
+ }, \
40
+ .thread_state = { \
41
+ .prev = offsetof(PyThreadState, prev), \
42
+ .next = offsetof(PyThreadState, next), \
43
+ .interp = offsetof(PyThreadState, interp), \
44
+ .cframe = offsetof(PyThreadState, cframe), \
45
+ .thread_id = offsetof(PyThreadState, thread_id), \
46
+ }, \
47
+ .frame_object = { \
48
+ .previous = offsetof(_PyInterpreterFrame, previous), \
49
+ .executable = offsetof(_PyInterpreterFrame, f_executable), \
50
+ .prev_instr = offsetof(_PyInterpreterFrame, prev_instr), \
51
+ .localsplus = offsetof(_PyInterpreterFrame, localsplus), \
52
+ .owner = offsetof(_PyInterpreterFrame, owner), \
53
+ }, \
54
+ .code_object = { \
55
+ .filename = offsetof(PyCodeObject, co_filename), \
56
+ .name = offsetof(PyCodeObject, co_name), \
57
+ .linetable = offsetof(PyCodeObject, co_linetable), \
58
+ .firstlineno = offsetof(PyCodeObject, co_firstlineno), \
59
+ .argcount = offsetof(PyCodeObject, co_argcount), \
60
+ .localsplusnames = offsetof(PyCodeObject, co_localsplusnames), \
61
+ .co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
62
+ }, \
57
63
}, \
58
64
.allocators = { \
59
65
.standard = _pymem_allocators_standard_INIT(runtime), \
0 commit comments