MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / gray_remaining

Method gray_remaining

aiscript-arena/src/context.rs:253–257  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

251
252 #[inline]
253 pub(crate) fn gray_remaining(&self) -> bool {
254 !self.gray.borrow().is_empty()
255 || !self.gray_again.borrow().is_empty()
256 || self.root_needs_trace.get()
257 }
258
259 // Do some collection work until either the debt goes down below the target amount or we have
260 // finished the gc sweep phase. The unit of "work" here is a byte count of objects either turned

Callers 3

collection_phaseMethod · 0.80
mark_debtMethod · 0.80
mark_allMethod · 0.80

Calls 2

borrowMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected