pub struct LXRFieldBarrierSemantics<VM: VMBinding> {
mmtk: &'static MMTK<VM>,
tls: VMMutatorThread,
incs: VectorQueue<VM::VMSlot>,
decs: VectorQueue<ObjectReference>,
refs: VectorQueue<ObjectReference>,
lxr: &'static LXR<VM>,
}Fields§
§mmtk: &'static MMTK<VM>§tls: VMMutatorThread§incs: VectorQueue<VM::VMSlot>§decs: VectorQueue<ObjectReference>§refs: VectorQueue<ObjectReference>§lxr: &'static LXR<VM>Implementations§
Source§impl<VM: VMBinding> LXRFieldBarrierSemantics<VM>
impl<VM: VMBinding> LXRFieldBarrierSemantics<VM>
const UNLOG_BITS: SideMetadataSpec
pub fn new(mmtk: &'static MMTK<VM>, tls: VMMutatorThread) -> Self
fn get_slot_logging_state(&self, slot: VM::VMSlot) -> u8
fn attempt_to_log_field(&self, slot: VM::VMSlot) -> bool
fn log_slot_and_get_old_target( &self, slot: VM::VMSlot, ) -> Result<Option<ObjectReference>, ()>
fn slow( &mut self, _src: Option<ObjectReference>, slot: VM::VMSlot, old: Option<ObjectReference>, )
fn enqueue_node( &mut self, src: Option<ObjectReference>, slot: VM::VMSlot, _new: Option<ObjectReference>, ) -> bool
fn should_create_satb_packets(&self) -> bool
fn flush_incs(&mut self)
fn flush_decs_and_satb(&mut self)
fn flush_weak_refs(&mut self)
Trait Implementations§
Source§impl<VM: VMBinding> BarrierSemantics for LXRFieldBarrierSemantics<VM>
impl<VM: VMBinding> BarrierSemantics for LXRFieldBarrierSemantics<VM>
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 load_weak_reference(&mut self, o: ObjectReference)
fn load_weak_reference(&mut self, o: ObjectReference)
Loading from a weak reference field
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 = _
Auto Trait Implementations§
impl<VM> Freeze for LXRFieldBarrierSemantics<VM>
impl<VM> !RefUnwindSafe for LXRFieldBarrierSemantics<VM>
impl<VM> Send for LXRFieldBarrierSemantics<VM>
impl<VM> Sync for LXRFieldBarrierSemantics<VM>
impl<VM> Unpin for LXRFieldBarrierSemantics<VM>
impl<VM> !UnwindSafe for LXRFieldBarrierSemantics<VM>
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