Type Definition jemalloc_sys::extent_commit_t
source · pub type extent_commit_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) -> bool;
Expand description
Extent commit function.
Commits zeroed physical memory to back 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.
Committed memory may be committed in absolute terms as on a system that does
not overcommit, or in implicit terms as on a system that overcommits and
satisfies physical memory needs on demand via soft page faults. If the
function returns true
, this indicates insufficient physical memory to
satisfy the request.