mimalloc
mimalloc copied to clipboard
mimalloc is a compact general purpose allocator with excellent performance.
Root cause located: Instead of glibc standard malloc, I'm using Microsoft [mimalloc](https://github.com/microsoft/mimalloc) as my memory allocator. ```bash ~ $ cat /etc/ld.so.preload /usr/lib/libmimalloc.so ``` after reverting back to glibc, the projects...
Stacktrace:  While assembling a JSON with RapidJSON, a temporary rvalue std::string is created and the C array is copied. When the string is destroyed, the crash happens.  
in commit f5f61a65f544fc24cd87080d264647714b6c30da, version is bumped to 2.1.4, but no new tag is pushed since 2.1.2
At application start, I am seeing the following output: ``` mimalloc-redirect: error: mimalloc-redirect.dll seems to be initialized after ucrtbase.dll (hint: try to link with 'mimalloc-override.lib' earlier on the command line?)...
- I have a dynamic library which cannot be linked against mimalloc for some reason `// MyDynLib.cpp`  `add_library(myDynLib SHARED MyDynLib.cpp)` - in my main program which link against mimalloc,...
Does `MI_OVERRIDE=ON` cmake option imply that new/delete are overridden in addition to the C malloc/etc interface? If I compile with `MI_OVERRIDE` on Linux, I get "multiple definition" linker errors when...
I am trying to override the new/delete operators as suggested in the [documentation](https://microsoft.github.io/mimalloc/using.html). I am using vcpkg and added the following statements in my CMakeLists.txt file: ``` find_package(mimalloc 1.6 REQUIRED)...
After configuring the build by cmake and with `MI_USE_CXX=ON` option, it fails to build for android with ndk `25.2` (clang 14.0.6) due to a template type deduction on a function...
The problem does not occur on linux. https://github.com/microsoft/mimalloc/blob/master/src/alloc.c#L212 ``` (lldb) r Process 93543 launched: './bin/arangodbtests' (x86_64) mimalloc: option 'secure': 0 mimalloc: option 'pool_commit': 0 mimalloc: process init: 0x7fffc980c3c0 mimalloc: debug...
Version: mimalloc v2.1.2 Mode: Static linking, override, ASAN OS: Linux (RHEL 7.9.2009) Compiler: GCC 10.3.0 Minimal repro: mimalloc built with: `cmake3 .. -DCMAKE_BUILD_TYPE=Debug -DMI_TRACK_ASAN=ON` Source code `testing.cpp` ``` #include #include...