mimalloc
-
Apparently it causes random segfaults when used for everything as
LD_PRELOAD
in.profile
so be careful -
openmandriva is the only distribution that uses mimalloc instead of mallocng: https://github.com/OpenMandrivaAssociation/musl/commit/275cbeb5d0a4874610d36f92bcf66d932a0fa0ff
-
jemalloc, mimalloc, and rpmalloc are “modern allocators”
-
mimalloc is more than 2.5× faster than tcmalloc and jemalloc
-
musl’s new default allocator malloc-ng is based on hardened_malloc:
-
No need to have a secure version? Because because all allocators should be secure:
-
requires
cmake
to build
TODO
-
secure version: https://git.alpinelinux.org/aports/tree/community/mimalloc2/APKBUILD
-
patch inside musl: https://git.alpinelinux.org/aports/tree/community/mimalloc2/APKBUILD