mi_collect

Eagerly free memory.

extern (C) @nogc pure @system nothrow
void
mi_collect
(
bool force
)

Parameters

force bool

If 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.

Meta