pub struct BgAotCompiler { /* private fields */ }Expand description
The interpreter-side handle to the background AOT compiler. submit is
non-blocking; try_drain is polled at profiling points and drain_blocking is the
determinism hook tests use. The worker detaches on drop.
Implementations§
Source§impl BgAotCompiler
impl BgAotCompiler
Sourcepub fn submit(&mut self, req: AotRequest)
pub fn submit(&mut self, req: AotRequest)
Queue an AOT build. Non-blocking; the interpreter keeps running on the lower
tier (bytecode / forge) while rustc works.
Sourcepub fn try_drain(&mut self) -> Option<AotResult>
pub fn try_drain(&mut self) -> Option<AotResult>
Take one finished AOT build if ready — polled at the profiling points.
Sourcepub fn drain_blocking(&mut self) -> Vec<AotResult>
pub fn drain_blocking(&mut self) -> Vec<AotResult>
Block until every outstanding build has come back — the determinism hook for the differential gates (a single AOT build is seconds, so tests opt in).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BgAotCompiler
impl !RefUnwindSafe for BgAotCompiler
impl Send for BgAotCompiler
impl !Sync for BgAotCompiler
impl Unpin for BgAotCompiler
impl UnsafeUnpin for BgAotCompiler
impl !UnwindSafe for BgAotCompiler
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.