[−][src]Struct jemalloc_sys::extent_hooks_s
Extent lifetime management functions.
The extent_hooks_t structure comprises function pointers which are described
individually below. jemalloc
uses these functions to manage extent lifetime,
which starts off with allocation of mapped committed memory, in the simplest
case followed by deallocation. However, there are performance and platform
reasons to retain extents for later reuse. Cleanup attempts cascade from
deallocation to decommit to forced purging to lazy purging, which gives the
extent management functions opportunities to reject the most permanent
cleanup operations in favor of less permanent (and often less costly)
operations. All operations except allocation can be universally opted out of
by setting the hook pointers to NULL
, or selectively opted out of by
returning failure. Note that once the extent hook is set, the structure is
accessed directly by the associated arenas, so it must remain valid for the
entire lifetime of the arenas.
Fields
alloc: Option<extent_alloc_t>
dalloc: Option<extent_dalloc_t>
destroy: Option<extent_destroy_t>
commit: Option<extent_commit_t>
decommit: Option<extent_decommit_t>
purge_lazy: Option<extent_purge_t>
purge_forced: Option<extent_purge_t>
split: Option<extent_split_t>
merge: Option<extent_merge_t>
Trait Implementations
impl Copy for extent_hooks_s
[src]
impl Clone for extent_hooks_s
[src]
fn clone(&self) -> extent_hooks_s
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for extent_hooks_s
[src]
fn default() -> extent_hooks_s
[src]
Auto Trait Implementations
impl Send for extent_hooks_s
impl Sync for extent_hooks_s
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,