Skip to main content

Crate brk_alloc

Crate brk_alloc 

Source
Expand description

mimalloc re-export and eager memory collection for BRK.

Binaries choose mimalloc themselves: #[global_allocator] static GLOBAL: brk_alloc::MiMalloc = brk_alloc::MiMalloc;. This crate never installs an allocator, so libraries depending on it leave the choice to the final binary. collect only affects memory mimalloc manages.

Structs§

MiMalloc
Drop-in mimalloc global allocator.

Functions§

collect
Eagerly returns mimalloc’s free memory to the OS. Only call at natural pause points.