Enum mmtk::util::options::GCTriggerSelector
source · pub enum GCTriggerSelector {
FixedHeapSize(usize),
DynamicHeapSize(usize, usize),
Delegated,
}
Expand description
Select a GC trigger for MMTk.
Variants§
FixedHeapSize(usize)
GC is triggered when a fix-sized heap is full. The value specifies the fixed heap size in bytes.
DynamicHeapSize(usize, usize)
GC is triggered by internal herusticis, and the heap size is varying between the two given values. The two values are the lower and the upper bound of the heap size.
Delegated
Delegate the GC triggering to the binding. This is not supported at the moment.
Implementations§
source§impl GCTriggerSelector
impl GCTriggerSelector
const K: u64 = 1_024u64
const M: u64 = 1_048_576u64
const G: u64 = 1_073_741_824u64
const T: u64 = 1_099_511_627_776u64
sourcepub fn max_heap_size(&self) -> usize
pub fn max_heap_size(&self) -> usize
get max heap size
Trait Implementations§
source§impl Clone for GCTriggerSelector
impl Clone for GCTriggerSelector
source§fn clone(&self) -> GCTriggerSelector
fn clone(&self) -> GCTriggerSelector
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GCTriggerSelector
impl Debug for GCTriggerSelector
source§impl FromStr for GCTriggerSelector
impl FromStr for GCTriggerSelector
source§impl PartialEq for GCTriggerSelector
impl PartialEq for GCTriggerSelector
source§fn eq(&self, other: &GCTriggerSelector) -> bool
fn eq(&self, other: &GCTriggerSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GCTriggerSelector
impl Eq for GCTriggerSelector
impl StructuralPartialEq for GCTriggerSelector
Auto Trait Implementations§
impl RefUnwindSafe for GCTriggerSelector
impl Send for GCTriggerSelector
impl Sync for GCTriggerSelector
impl Unpin for GCTriggerSelector
impl UnwindSafe for GCTriggerSelector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more