mimalloc
mimalloc copied to clipboard
mimalloc is a compact general purpose allocator with excellent performance.
Playing with pedantic warning compiler flags, came across a minor `int` vs `long` issue: https://github.com/microsoft/mimalloc/blob/09a27098aa6e9286518bd9c74e6ffa7199c3f04e/src/init.c#L652 It's obtaining a `long` from the options: ``` long reserve_at = mi_option_get(mi_option_reserve_huge_os_pages_at); ``` But `mi_reserve_huge_os_pages_at()`...
Running v3.1.5 debug test binaries with MI_SECURE in arm64-osx vcpkg triplet fails in https://github.com/microsoft/mimalloc/blob/dfa50c37d951128b1e77167dd9291081aa88eea4/src/os.c#L55 I realized that `gsize` is a runtime property [obtained via `sysconf(_SC_PAGESIZE)`](https://github.com/microsoft/mimalloc/blob/dfa50c37d951128b1e77167dd9291081aa88eea4/src/prim/unix/prim.c#L184-L186), and I could verify that...
I get the compilation errors when I try to build `mimalloc3` using `wasi` target. ``` git clone --branch v3.1.5 https://github.com/microsoft/mimalloc.git ``` ``` ~/w/h/s/h/t/mimalloc ((v3.1.5)) [1]> ~/workspace/build/wasi-sdk-23.0-x86_64-linux/bin/clang src/static.c -I include/ -I...
It seems mimalloc only print peak_rss(it seems kind of misleading that it use "rss" other than "peak_rss" in log https://github.com/microsoft/mimalloc/blob/main/src/stats.c#L367) in `mi_stats_print`, and `current_rss` seems also useful and worthy to...
This small pull request fixes the issue #1113 by doing 2 things: 1) Actually pass the library name being searched for to find_library 2) Use unique variables when invoking find_library...
_lzcnt_u64 may not supported by native LLVM compiler on Windows.
Hello [mimalloc](https://github.com/microsoft/mimalloc) team and community, First of all, thank you for creating and maintaining such a robust and well-designed allocator. It's an incredibly valuable piece of technology. We’ve developed an...
I want to new a heap for a module. To avoid memory fragmentation, when the module is idle, I want to restore the initial state of the heap. How should...
When built as C++, `_Atomic` in mimalloc is defined as `std::atomic`. For Clang, `mi_process_attach()` in `prim.c` is declared so it runs before static ctors. The result is that any file...
Hello, I am playing with Apache Arrow, which is using mimalloc (by default), and noticed some weird performance that I could not explain and that goes away when switching to...