Type Definition jemalloc_sys::extent_split_t

source ·
pub type extent_split_t = unsafe extern "C" fn(extent_hooks: *mut extent_hooks_t, addr: *mut c_void, size: size_t, size_a: size_t, size_b: size_t, committed: bool, arena_ind: c_uint) -> bool;
Expand description

Extent split function.

Optionally splits an extent at given addr and size into two adjacent extents, the first of size_a bytes, and the second of size_b bytes, operating on committed/decommitted memory as indicated, on behalf of arena arena_ind, returning false upon success.

If the function returns true, this indicates that the extent remains unsplit and therefore should continue to be operated on as a whole.