Skip to content

Commit 4ab697c

Browse files
fix test
1 parent 423dc48 commit 4ab697c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Objects/obmalloc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)