iai_callgrind::client_requests::valgrind

Function destroy_mempool

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

Destroy a memory pool

This request tells Memcheck that a pool is being torn down. Memcheck then removes all records of chunks associated with the pool, as well as its record of the pool’s existence. While destroying its records of a mempool, Memcheck resets the redzones of any live chunks in the pool to NOACCESS.

See also Memory Pools: describing and working with custom allocators