pub struct ProcessIncs<VM: VMBinding, const KIND: u8> {
incs: Vec<VM::VMSlot>,
new_incs: VectorQueue<VM::VMSlot>,
new_incs_count: u32,
pause: Pause,
in_cm: bool,
no_evac: bool,
pub root_kind: Option<RootKind>,
depth: u32,
lxr: &'static LXR<VM>,
rc: RefCountHelper<VM>,
survival_ratio_predictor_local: SurvivalRatioPredictorLocal,
}Fields§
§incs: Vec<VM::VMSlot>Increments to process
new_incs: VectorQueue<VM::VMSlot>Recursively generated new increments
new_incs_count: u32§pause: Pause§in_cm: bool§no_evac: bool§root_kind: Option<RootKind>§depth: u32§lxr: &'static LXR<VM>§rc: RefCountHelper<VM>§survival_ratio_predictor_local: SurvivalRatioPredictorLocalImplementations§
Source§impl<VM: VMBinding, const KIND: u8> ProcessIncs<VM, KIND>
impl<VM: VMBinding, const KIND: u8> ProcessIncs<VM, KIND>
const CAPACITY: usize = 1_024usize
const UNLOG_BITS: SideMetadataSpec
fn __default(lxr: &'static LXR<VM>) -> Self
fn add_new_slot(&mut self, worker: &mut GCWorker<VM>, s: VM::VMSlot)
pub fn new(incs: Vec<VM::VMSlot>, lxr: &'static LXR<VM>) -> Self
fn promote( &mut self, worker: &mut GCWorker<VM>, o: ObjectReference, copied: bool, los: bool, depth: u32, )
fn record_mature_evac_remset2( &mut self, slot_in_defrag: bool, s: VM::VMSlot, o: ObjectReference, )
fn record_mature_evac_remset(&mut self, s: VM::VMSlot, o: ObjectReference)
fn scan_nursery_object( &mut self, worker: &mut GCWorker<VM>, o: ObjectReference, los: bool, in_place_promotion: bool, _depth: u32, size: usize, )
fn flush(&mut self, worker: &mut GCWorker<VM>)
Sourcefn inc(&self, o: ObjectReference) -> bool
fn inc(&self, o: ObjectReference) -> bool
Return true if the object’s ref count is incremented and the count was zero before the increment
fn dont_evacuate(&self, o: ObjectReference, los: bool) -> bool
fn process_inc_and_evacuate( &mut self, worker: &mut GCWorker<VM>, o: ObjectReference, depth: u32, ) -> ObjectReference
Sourcefn unlog_and_load_rc_object<const K: u8>(
&mut self,
s: VM::VMSlot,
) -> Option<ObjectReference>
fn unlog_and_load_rc_object<const K: u8>( &mut self, s: VM::VMSlot, ) -> Option<ObjectReference>
Return None if the increment of the slot should be delayed
fn process_slot<const K: u8>( &mut self, worker: &mut GCWorker<VM>, s: VM::VMSlot, depth: u32, add_root_to_remset: bool, ) -> Option<ObjectReference>
fn process_incs<const K: u8>( &mut self, worker: &mut GCWorker<VM>, incs: AddressBuffer<'_, VM::VMSlot>, depth: u32, add_root_to_remset: bool, ) -> Option<Vec<ObjectReference>>
Trait Implementations§
Source§impl<VM: VMBinding, const KIND: u8> GCWork<VM> for ProcessIncs<VM, KIND>
impl<VM: VMBinding, const KIND: u8> GCWork<VM> for ProcessIncs<VM, KIND>
Source§fn do_work(&mut self, worker: &mut GCWorker<VM>, mmtk: &'static MMTK<VM>)
fn do_work(&mut self, worker: &mut GCWorker<VM>, mmtk: &'static MMTK<VM>)
Define the work for this packet. However, this is not supposed to be called directly.
Usually
do_work_with_stat() should be used. Read moreSource§fn do_work_with_stat(
&mut self,
worker: &mut GCWorker<VM>,
mmtk: &'static MMTK<VM>,
)
fn do_work_with_stat( &mut self, worker: &mut GCWorker<VM>, mmtk: &'static MMTK<VM>, )
Do work and collect statistics. This internally calls
do_work(). In most cases,
this should be called rather than do_work() so that MMTk can correctly collect
statistics for the work packets.
If the feature “work_packet_stats” is not enabled, this call simply forwards the call
to do_work().Source§fn get_type_name(&self) -> &'static str
fn get_type_name(&self) -> &'static str
Get the compile-time static type name for the work packet.
impl<VM: VMBinding, const KIND: u8> Send for ProcessIncs<VM, KIND>
Auto Trait Implementations§
impl<VM, const KIND: u8> !Freeze for ProcessIncs<VM, KIND>
impl<VM, const KIND: u8> !RefUnwindSafe for ProcessIncs<VM, KIND>
impl<VM, const KIND: u8> Sync for ProcessIncs<VM, KIND>
impl<VM, const KIND: u8> Unpin for ProcessIncs<VM, KIND>
impl<VM, const KIND: u8> !UnwindSafe for ProcessIncs<VM, KIND>
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