pub(crate) struct DefaultObjectTracerContext<T: Trace> {
stage: WorkBucketStage,
phantom_data: PhantomData<T>,
}Expand description
This implementation of ObjectTracerContext creates the DefaultObjectTracer to expand the
transitive closure during a stop-the-world tracing GC or the final mark pause of a concurrent
GC. It is used during object scanning as well as weak reference processing.
Fields§
§stage: WorkBucketStage§phantom_data: PhantomData<T>Implementations§
Source§impl<T: Trace> DefaultObjectTracerContext<T>
impl<T: Trace> DefaultObjectTracerContext<T>
pub fn new(stage: WorkBucketStage) -> Self
Trait Implementations§
Source§impl<T: Clone + Trace> Clone for DefaultObjectTracerContext<T>
impl<T: Clone + Trace> Clone for DefaultObjectTracerContext<T>
Source§fn clone(&self) -> DefaultObjectTracerContext<T>
fn clone(&self) -> DefaultObjectTracerContext<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Trace> ObjectTracerContext<<T as Trace>::VM> for DefaultObjectTracerContext<T>
impl<T: Trace> ObjectTracerContext<<T as Trace>::VM> for DefaultObjectTracerContext<T>
Source§type TracerType<'w> = DefaultObjectTracer<'w, T>
type TracerType<'w> = DefaultObjectTracer<'w, T>
The concrete
ObjectTracer type. Read moreSource§fn with_tracer<'w, R, F>(&self, worker: &'w mut GCWorker<T::VM>, func: F) -> Rwhere
F: FnOnce(&mut Self::TracerType<'w>) -> R,
fn with_tracer<'w, R, F>(&self, worker: &'w mut GCWorker<T::VM>, func: F) -> Rwhere
F: FnOnce(&mut Self::TracerType<'w>) -> R,
Auto Trait Implementations§
impl<T> Freeze for DefaultObjectTracerContext<T>
impl<T> RefUnwindSafe for DefaultObjectTracerContext<T>where
T: RefUnwindSafe,
impl<T> Send for DefaultObjectTracerContext<T>
impl<T> Sync for DefaultObjectTracerContext<T>where
T: Sync,
impl<T> Unpin for DefaultObjectTracerContext<T>where
T: Unpin,
impl<T> UnwindSafe for DefaultObjectTracerContext<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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