iai_callgrind::client_requests::valgrind

Function mempool_alloc

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

Associate a piece of memory with a memory pool

This request informs Memcheck that a size-byte chunk has been allocated at addr, and associates the chunk with the specified pool. If the pool was created with nonzero redzones, Memcheck will mark the bytes before and after the chunk as NOACCESS. If the pool was created with the is_zeroed argument set, Memcheck will mark the chunk as DEFINED, otherwise Memcheck will mark the chunk as UNDEFINED.

See also Memory Pools: describing and working with custom allocators