mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

mimalloc is a compact general purpose allocator with excellent performance.

Results 266 mimalloc issues
Sort by recently updated
recently updated
newest added

I pre-allocate a large block of memory using mmap, for example, 1GB, and then use the mi_manage_os_memory function to manage this block of memory. After that, I allocate several memory...

MacOS 10.13. ``` Thread 2 Crashed:: Dispatch queue: com.apple.root.default-qos.overcommit 0 libsystem_platform.dylib 0x00007fff533be5e2 _os_unfair_lock_recursive_abort + 23 1 libsystem_platform.dylib 0x00007fff533be710 _os_unfair_lock_lock_slow + 226 2 libsystem_c.dylib 0x00007fff53120db8 arc4random_buf + 32 3 libmimalloc.3.dylib 0x00000001090cbad3...

mi_is_in_heap_region returns false for pointers allocated by mimalloc who were allocated along the overallocate path, see osc.c (782-794). ``` // overallocate... p = mi_os_mem_alloc(over_size, 1, commit, false, is_large, stats); if...

1. GCC-4.8.5 does not contain the file stdatomic.h, add a similar file (gcc-4.8.5-atomic.h) for compiling in gcc4.8.5 2. Add option MI_ATOMIC_FOR_GCC485 in cmakelists.txt for this case

This can be useful if the code base already overrides it.

Using `abort` to match what is done elsewhere This reduces the number of symbols imported which can slightly improve startup time Before: ``` ❯ nm -g (which bun) | wc...

`Mimalloc` is available as a port in [vcpkg](https://github.com/microsoft/vcpkg), a C++ library manager that simplifies installation for mimalloc and other project dependencies. Documenting the install process here will help users get...

The owners will be the default owners for everything in the repository and will be requested for review when someone opens a pull request. Reference: https://help.github.com/en/articles/about-code-owners

I'm hitting infinite recursion here when trying to run statically linked mimalloc from `dev3` with `MI_DEBUG_FULL=ON`+ `MI_CHECK_FULL=ON` on Android. Attaching top of the callstack: ``` _mi_heap_main_get (mimalloc/src/init.c:272) mi_prim_get_default_heap (mimalloc/include/mimalloc/prim.h:411) mi_malloc...

potential fix for https://github.com/microsoft/mimalloc/issues/1058 also needed in dev3