File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -852,6 +852,7 @@ get_current_allocator_name_unlocked(void)
852852#ifdef WITH_MIMALLOC
853853 PyMemAllocatorEx mimalloc = MIMALLOC_ALLOC ;
854854 PyMemAllocatorEx mimalloc_obj = MIMALLOC_OBJALLOC ;
855+ PyMemAllocatorEx mimalloc_raw = MIMALLOC_RAWALLOC ;
855856#endif
856857
857858 if (pymemallocator_eq (& _PyMem_Raw , & malloc_alloc ) &&
@@ -869,7 +870,7 @@ get_current_allocator_name_unlocked(void)
869870 }
870871#endif
871872#ifdef WITH_MIMALLOC
872- if (pymemallocator_eq (& _PyMem_Raw , & malloc_alloc ) &&
873+ if (pymemallocator_eq (& _PyMem_Raw , & mimalloc_raw ) &&
873874 pymemallocator_eq (& _PyMem , & mimalloc ) &&
874875 pymemallocator_eq (& _PyObject , & mimalloc_obj ))
875876 {
@@ -901,7 +902,7 @@ get_current_allocator_name_unlocked(void)
901902 }
902903#endif
903904#ifdef WITH_MIMALLOC
904- if (pymemallocator_eq (& _PyMem_Debug .raw .alloc , & malloc_alloc ) &&
905+ if (pymemallocator_eq (& _PyMem_Debug .raw .alloc , & mimalloc_raw ) &&
905906 pymemallocator_eq (& _PyMem_Debug .mem .alloc , & mimalloc ) &&
906907 pymemallocator_eq (& _PyMem_Debug .obj .alloc , & mimalloc_obj ))
907908 {
You can’t perform that action at this time.
0 commit comments