[−][src]Type Definition jemalloc_sys::extent_decommit_t
type extent_decommit_t = unsafe extern "C" fn(extent_hooks: *mut extent_hooks_t, addr: *mut c_void, size: size_t, offset: size_t, length: size_t, arena_ind: c_uint) -> c_int;
Extent decommit function.
Decommits any physical memory that is backing pages within an extent at
given addr
and size
at offset
bytes, extending for length
on behalf of arena
arena_ind
, returning false
upon success, in which case the pages will be
committed via the extent commit function before being reused.
If the function returns true
, this indicates opt-out from decommit; the
memory remains committed and available for future use, in which case it will
be automatically retained for later reuse.