Function libmimalloc_sys::mi_collect
source ยท pub unsafe extern "C" fn mi_collect(force: bool)
Expand description
Eagerly free memory.
If force
is true, aggressively return memory to the OS (can be
expensive!)
Regular code should not have to call this function. It can be beneficial in very narrow circumstances; in particular, when a long running thread allocates a lot of blocks that are freed by other threads it may improve resource usage by calling this every once in a while.