File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ struct _tracemalloc_runtime_state {
99
99
Protected by TABLES_LOCK(). */
100
100
_Py_hashtable_t * domains ;
101
101
102
+ struct tracemalloc_traceback empty_traceback ;
103
+
102
104
Py_tss_t reentrant_key ;
103
105
};
104
106
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ typedef struct tracemalloc_traceback traceback_t;
63
63
static const unsigned long MAX_NFRAME = Py_MIN (UINT16_MAX , ((SIZE_MAX - sizeof (traceback_t )) / sizeof (frame_t ) + 1 ));
64
64
65
65
66
- static traceback_t tracemalloc_empty_traceback ;
66
+ #define tracemalloc_empty_traceback _PyRuntime.tracemalloc.empty_traceback
67
+
67
68
68
69
/* Trace of a memory block */
69
70
typedef struct {
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ Modules/faulthandler.c - old_stack -
377
377
# #-----------------------
378
378
# # state
379
379
380
- Modules/_tracemalloc.c - tracemalloc_empty_traceback -
381
380
Modules/faulthandler.c faulthandler_dump_traceback reentrant -
382
381
Modules/signalmodule.c - is_tripped -
383
382
Modules/signalmodule.c - signal_global_state -
You can’t perform that action at this time.
0 commit comments