iai_callgrind::client_requests::valgrind

Function mempool_change

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

Resize and/or move a piece associated with a memory pool

This request informs Memcheck that the chunk previously allocated at address addr_a within pool has been moved and/or resized, and should be changed to cover the region addr_b..(addr_b+size-1). This is a rare request, typically only needed if you realloc a superblock or wish to extend a chunk without changing its memory-status bits.

No memory-status bits are altered by this request.

See also Memory Pools: describing and working with custom allocators