File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,11 @@ extern "C" {
52
52
#ifdef Py_GIL_DISABLED
53
53
# define _Py_Debug_gilruntimestate_enabled offsetof(struct _gil_runtime_state, enabled)
54
54
# define _Py_Debug_Free_Threaded 1
55
+ # define _Py_Debug_code_object_co_tlbc offsetoff(PyCodeObject, co_tlbc)
55
56
#else
56
57
# define _Py_Debug_gilruntimestate_enabled 0
57
58
# define _Py_Debug_Free_Threaded 0
59
+ # define _Py_Debug_code_object_co_tlbc 0
58
60
#endif
59
61
60
62
@@ -123,6 +125,7 @@ typedef struct _Py_DebugOffsets {
123
125
uint64_t localsplusnames ;
124
126
uint64_t localspluskinds ;
125
127
uint64_t co_code_adaptive ;
128
+ uint64_t co_tlbc ;
126
129
} code_object ;
127
130
128
131
// PyObject offset;
@@ -277,6 +280,7 @@ typedef struct _Py_DebugOffsets {
277
280
.localsplusnames = offsetof(PyCodeObject, co_localsplusnames), \
278
281
.localspluskinds = offsetof(PyCodeObject, co_localspluskinds), \
279
282
.co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
283
+ .co_tlbc = _Py_Debug_code_object_co_tlbc, \
280
284
}, \
281
285
.pyobject = { \
282
286
.size = sizeof(PyObject), \
You can’t perform that action at this time.
0 commit comments