Type Alias tikv_jemalloc_sys::extent_merge_t

source ยท
pub type extent_merge_t = unsafe extern "C" fn(extent_hooks: *mut extent_hooks_t, addr_a: *mut c_void, size_a: size_t, addr_b: *mut c_void, size_b: size_t, committed: bool, arena_ind: c_uint) -> bool;
Expand description

Extent merge function.

Optionally merges adjacent extents, at given addr_a and size_a with given addr_b and size_b into one contiguous extent, 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 extents remain distinct mappings and therefore should continue to be operated on independently.