Function mozjs_sys::jsapi::JS::WantEagerMinorGC
source ยท pub unsafe extern "C" fn WantEagerMinorGC(
rt: *mut JSRuntime,
) -> GCReason
Expand description
Check whether the nursery should be eagerly collected, this is before it is full.
The idea is that this can be called when the host environment has some idle time which it can use to for GC activity.
Returns GCReason::NO_REASON to indicate no collection is desired.