File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ Data members:
20
20
#include "pycore_code.h" // _Py_QuickenedCount
21
21
#include "pycore_frame.h" // _PyInterpreterFrame
22
22
#include "pycore_initconfig.h" // _PyStatus_EXCEPTION()
23
- #include "pycore_mimalloc.h" // MI_SECURE, MI_DEBUG
23
+ #ifdef WITH_MIMALLOC
24
+ # include "pycore_mimalloc.h" // MI_SECURE, MI_DEBUG
25
+ #endif
24
26
#include "pycore_namespace.h" // _PyNamespace_New()
25
27
#include "pycore_object.h" // _PyObject_IS_GC()
26
28
#include "pycore_pathconfig.h" // _PyPathConfig_ComputeSysPath0()
@@ -1970,8 +1972,13 @@ make_malloc_info(void)
1970
1972
#endif
1971
1973
PyStructSequence_SET_ITEM (malloc_info , pos ++ , _Py_NewRef (v ));
1972
1974
1975
+ #ifdef WITH_MIMALLOC
1973
1976
SetIntItem (MI_SECURE );
1974
1977
SetIntItem (MI_DEBUG );
1978
+ #else
1979
+ SetIntItem (-1 );
1980
+ SetIntItem (-1 );
1981
+ #endif
1975
1982
1976
1983
#undef SetIntItem
1977
1984
You can’t perform that action at this time.
0 commit comments