Function mozjs::jsapi::JS::MaybeRunNurseryCollection
source ยท pub unsafe extern "C" fn MaybeRunNurseryCollection(
rt: *mut JSRuntime,
reason: GCReason,
)
Expand description
Check whether the nursery should be eagerly collected as per WantEagerMajorGC above, and if so run a collection.
The idea is that this can be called when the host environment has some idle time which it can use to for GC activity.