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()
@@ -2002,8 +2004,13 @@ make_malloc_info(void)
2002
2004
#endif
2003
2005
PyStructSequence_SET_ITEM (malloc_info , pos ++ , _Py_NewRef (v ));
2004
2006
2007
+ #ifdef WITH_MIMALLOC
2005
2008
SetIntItem (MI_SECURE );
2006
2009
SetIntItem (MI_DEBUG );
2010
+ #else
2011
+ SetIntItem (-1 );
2012
+ SetIntItem (-1 );
2013
+ #endif
2007
2014
2008
2015
#undef SetIntItem
2009
2016
You can’t perform that action at this time.
0 commit comments