Enum mmtk::util::options::PlanSelector
source · pub enum PlanSelector {
NoGC,
SemiSpace,
GenCopy,
GenImmix,
MarkSweep,
PageProtect,
Immix,
MarkCompact,
StickyImmix,
}
Expand description
Select a GC plan for MMTk.
Variants§
NoGC
Allocation only without a collector. This is usually used for debugging. Similar to OpenJDK epsilon (https://openjdk.org/jeps/318).
SemiSpace
A semi-space collector, which divides the heap into two spaces and copies the live objects into the other space for every GC.
GenCopy
A generational collector that uses a copying nursery, and the semi-space policy as its mature space.
GenImmix
A generational collector that uses a copying nursery, and Immix as its mature space.
MarkSweep
A mark-sweep collector, which marks live objects and sweeps dead objects during GC.
PageProtect
A debugging collector that allocates memory at page granularity, and protects pages for dead objects to prevent future access.
Immix
A mark-region collector that allows an opportunistic defragmentation mechanism.
MarkCompact
A mark-compact collector that marks objects and performs Cheney-style copying.
StickyImmix
An Immix collector that uses a sticky mark bit to allow generational behaviors without a copying nursery.
Trait Implementations§
source§impl Clone for PlanSelector
impl Clone for PlanSelector
source§fn clone(&self) -> PlanSelector
fn clone(&self) -> PlanSelector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlanSelector
impl Debug for PlanSelector
source§impl FromStr for PlanSelector
impl FromStr for PlanSelector
source§impl PartialEq for PlanSelector
impl PartialEq for PlanSelector
source§fn eq(&self, other: &PlanSelector) -> bool
fn eq(&self, other: &PlanSelector) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for PlanSelector
impl TryFrom<&str> for PlanSelector
impl Copy for PlanSelector
impl Eq for PlanSelector
impl StructuralPartialEq for PlanSelector
Auto Trait Implementations§
impl RefUnwindSafe for PlanSelector
impl Send for PlanSelector
impl Sync for PlanSelector
impl Unpin for PlanSelector
impl UnwindSafe for PlanSelector
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
§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>
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>
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)
&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)
&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>
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>
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