pub struct MMTKBuilder {
pub options: Options,
}
Expand description
MMTk builder. This is used to set options and other settings before actually creating an MMTk instance.
Fields§
§options: Options
The options for this instance.
Implementations§
source§impl MMTKBuilder
impl MMTKBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create an MMTK builder with options read from environment variables, or using built-in default if not overridden by environment variables.
sourcepub fn new_no_env_vars() -> Self
pub fn new_no_env_vars() -> Self
Create an MMTK builder with build-in default options, but without reading options from environment variables.
sourcepub fn set_option(&mut self, name: &str, val: &str) -> bool
pub fn set_option(&mut self, name: &str, val: &str) -> bool
Set an option.
sourcepub fn set_options_bulk_by_str(&mut self, options: &str) -> bool
pub fn set_options_bulk_by_str(&mut self, options: &str) -> bool
Set multiple options by a string. The string should be key-value pairs separated by white spaces,
such as threads=1 stress_factor=4096
.
sourcepub fn set_vm_layout(&mut self, constants: VMLayout)
pub fn set_vm_layout(&mut self, constants: VMLayout)
Custom VM layout constants. VM bindings may use this function for compressed or 39-bit heap support. This function must be called before MMTk::new()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MMTKBuilder
impl RefUnwindSafe for MMTKBuilder
impl Send for MMTKBuilder
impl Sync for MMTKBuilder
impl Unpin for MMTKBuilder
impl UnwindSafe for MMTKBuilder
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