Function js::jsapi::GCForReason
[−]
[src]
pub unsafe extern "C" fn GCForReason(
rt: *mut JSRuntime,
gckind: JSGCInvocationKind,
reason: Reason
)
Performs a non-incremental collection of all selected zones.
If the gckind argument is GC_NORMAL, then some objects that are unreachable from the program may still be alive afterwards because of internal references; if GC_SHRINK is passed then caches and other temporary references to objects will be cleared and all unreferenced objects will be removed from the system.