Function js::jsapi::StartIncrementalGC
[−]
[src]
pub unsafe extern "C" fn StartIncrementalGC(
rt: *mut JSRuntime,
gckind: JSGCInvocationKind,
reason: Reason,
millis: i64
)
Begin an incremental collection and perform one slice worth of work. When this function returns, the collection may not be complete. IncrementalGCSlice() must be called repeatedly until !IsIncrementalGCInProgress(rt).
Note: SpiderMonkey's GC is not realtime. Slices in practice may be longer or shorter than the requested interval.