File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -131,13 +131,7 @@ extern bool _mi_process_is_initialized; // has mi_process_init been
131
131
132
132
static inline mi_threadid_t _mi_prim_thread_id (void ) mi_attr_noexcept ;
133
133
134
- #ifdef MI_PRIM_THREAD_ID
135
-
136
- static inline mi_threadid_t _mi_prim_thread_id (void ) mi_attr_noexcept {
137
- return MI_PRIM_THREAD_ID ();
138
- }
139
-
140
- #elif defined(_WIN32 )
134
+ #if defined(_WIN32 )
141
135
142
136
#define WIN32_LEAN_AND_MEAN
143
137
#include <windows.h>
Original file line number Diff line number Diff line change @@ -20,12 +20,9 @@ typedef enum {
20
20
#include "pycore_pymem.h"
21
21
22
22
#ifdef WITH_MIMALLOC
23
- # ifdef Py_GIL_DISABLED
24
- # define MI_PRIM_THREAD_ID _Py_ThreadId
25
- # endif
26
- # define MI_DEBUG_UNINIT PYMEM_CLEANBYTE
27
- # define MI_DEBUG_FREED PYMEM_DEADBYTE
28
- # define MI_DEBUG_PADDING PYMEM_FORBIDDENBYTE
23
+ #define MI_DEBUG_UNINIT PYMEM_CLEANBYTE
24
+ #define MI_DEBUG_FREED PYMEM_DEADBYTE
25
+ #define MI_DEBUG_PADDING PYMEM_FORBIDDENBYTE
29
26
#ifdef Py_DEBUG
30
27
# define MI_DEBUG 1
31
28
#else
You can’t perform that action at this time.
0 commit comments