iai_callgrind::client_requests::valgrind

Function mempool_free

source
pub fn mempool_free(pool: *const (), addr: *const ())
Available on crate feature client_requests_defs only.
Expand description

Disassociate a piece of memory from a memory pool

This request informs Memcheck that the chunk at addr should no longer be considered allocated. Memcheck will mark the chunk associated with addr as NOACCESS, and delete its record of the chunk’s existence.

See also Memory Pools: describing and working with custom allocators