Le 11/06/2024 à 10:35, Sutou Kouhei a écrit :
Hi,
In <2a32f61c-dd22-4f3f-bc98-822dcb6b0...@python.org>
"Re: [Discuss][C++] Switch to mimalloc by default?" on Tue, 11 Jun 2024
10:21:12 +0200,
Antoine Pitrou <anto...@python.org> wrote:
I was thinking about find_package(). Good to know that it doesn't
affect the application, but would it affect Arrow C++ then?
mimalloc doesn't override malloc()/free() as long as we
don't include mimalloc-override.h:
https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-override.h
I see malloc() defined by libmimalloc.so.2 here (Ubuntu 22.04):
$ nm --dynamic --defined-only
/usr/lib/x86_64-linux-gnu/libmimalloc.so.2.0 | \grep "malloc"
0000000000012520 T _aligned_malloc
0000000000011380 T __libc_malloc
0000000000011380 T malloc
00000000000124e0 T malloc_good_size
000000000000a460 T malloc_size
000000000000a460 T malloc_usable_size
0000000000011260 T mi_heap_malloc
000000000001acd0 T mi_heap_malloc_aligned
000000000001a6c0 T mi_heap_malloc_aligned_at
0000000000011cb0 T mi_heap_mallocn
0000000000011100 T mi_heap_malloc_small
0000000000011380 T mi_malloc
000000000001ad10 T mi_malloc_aligned
000000000001a6d0 T mi_malloc_aligned_at
0000000000019410 T mi_malloc_good_size
0000000000011e00 T mi_mallocn
00000000000189e0 T mi_malloc_size
00000000000117b0 T mi_malloc_small
00000000000189f0 T mi_malloc_usable_size