pub struct GenObjectBarrierSemantics<VM: VMBinding, P: GenerationalPlanExt<VM> + PlanTraceObject<VM>> {
mmtk: &'static MMTK<VM>,
plan: &'static P,
modbuf: VectorQueue<ObjectReference>,
region_modbuf: VectorQueue<VM::VMMemorySlice>,
}Fields§
§mmtk: &'static MMTK<VM>MMTk instance
plan: &'static PGenerational plan
modbuf: VectorQueue<ObjectReference>Object modbuf. Contains a list of objects that may contain pointers to the nursery space.
region_modbuf: VectorQueue<VM::VMMemorySlice>Array-copy modbuf. Contains a list of sub-arrays or array slices that may contain pointers to the nursery space.
Implementations§
source§impl<VM: VMBinding, P: GenerationalPlanExt<VM> + PlanTraceObject<VM>> GenObjectBarrierSemantics<VM, P>
impl<VM: VMBinding, P: GenerationalPlanExt<VM> + PlanTraceObject<VM>> GenObjectBarrierSemantics<VM, P>
pub fn new(mmtk: &'static MMTK<VM>, plan: &'static P) -> Self
fn flush_modbuf(&mut self)
fn flush_region_modbuf(&mut self)
Trait Implementations§
source§impl<VM: VMBinding, P: GenerationalPlanExt<VM> + PlanTraceObject<VM>> BarrierSemantics for GenObjectBarrierSemantics<VM, P>
impl<VM: VMBinding, P: GenerationalPlanExt<VM> + PlanTraceObject<VM>> BarrierSemantics for GenObjectBarrierSemantics<VM, P>
type VM = VM
source§fn flush(&mut self)
fn flush(&mut self)
Flush thread-local buffers or remembered sets.
Normally this is called by the slow-path implementation whenever the thread-local buffers are full.
This will also be called externally by the VM, when the thread is being destroyed.
source§fn object_reference_write_slow(
&mut self,
src: ObjectReference,
_slot: VM::VMSlot,
_target: Option<ObjectReference>,
)
fn object_reference_write_slow( &mut self, src: ObjectReference, _slot: VM::VMSlot, _target: Option<ObjectReference>, )
Slow-path call for object field write operations.
source§fn memory_region_copy_slow(
&mut self,
_src: VM::VMMemorySlice,
dst: VM::VMMemorySlice,
)
fn memory_region_copy_slow( &mut self, _src: VM::VMMemorySlice, dst: VM::VMMemorySlice, )
Slow-path call for mempry slice copy operations. For example, array-copy operations.
source§fn object_probable_write_slow(&mut self, obj: ObjectReference)
fn object_probable_write_slow(&mut self, obj: ObjectReference)
Object will probably be modified
const UNLOG_BIT_SPEC: MetadataSpec = _
source§fn load_weak_reference(&mut self, _o: ObjectReference)
fn load_weak_reference(&mut self, _o: ObjectReference)
Loading from a weak reference field
Auto Trait Implementations§
impl<VM, P> Freeze for GenObjectBarrierSemantics<VM, P>
impl<VM, P> !RefUnwindSafe for GenObjectBarrierSemantics<VM, P>
impl<VM, P> Send for GenObjectBarrierSemantics<VM, P>
impl<VM, P> Sync for GenObjectBarrierSemantics<VM, P>
impl<VM, P> Unpin for GenObjectBarrierSemantics<VM, P>
impl<VM, P> !UnwindSafe for GenObjectBarrierSemantics<VM, P>
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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§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