Type Alias tikv_jemalloc_sys::extent_dalloc_t
source ยท pub type extent_dalloc_t = unsafe extern "C" fn(extent_hooks: *mut extent_hooks_t, addr: *mut c_void, size: size_t, committed: bool, arena_ind: c_uint) -> bool;
Expand description
Extent deallocation function.
Deallocates an extent at given addr
and size
with committed
/decommited
memory as indicated, on behalf of arena arena_ind
, returning false
upon
success.
If the function returns true
, this indicates opt-out from deallocation;
the virtual memory mapping associated with the extent remains mapped, in the
same commit state, and available for future use, in which case it will be
automatically retained for later reuse.