Function script::dom::bindings::import::module::jsapi::JS::IncrementalGCSlice

source ·
pub unsafe extern "C" fn IncrementalGCSlice(
    cx: *mut JSContext,
    reason: GCReason,
    budget: *const SliceBudget,
)
Expand description

Perform a slice of an ongoing incremental collection. When this function returns, the collection may not be complete. It must be called repeatedly until !IsIncrementalGCInProgress(cx).

Note: SpiderMonkey’s GC is not realtime. Slices in practice may be longer or shorter than the requested interval.