iai_callgrind::client_requests::valgrind

Function create_mempool

source
pub fn create_mempool(pool: *const (), redzone: usize, is_zeroed: bool)
Available on crate feature client_requests_defs only.
Expand description

Create a memory pool

This request registers the address pool as the anchor address for a memory pool. It also provides a size redzone, specifying how large the redzones placed around chunks allocated from the pool should be. Finally, it provides an is_zeroed argument that specifies whether the pool’s chunks are zeroed (more precisely: defined) when allocated. Upon completion of this request, no chunks are associated with the pool. The request simply tells Memcheck that the pool exists, so that subsequent calls can refer to it as a pool.

See also Memory Pools: describing and working with custom allocators