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

source ·
pub unsafe extern "C" fn IsIncrementalGCEnabled(
    cx: *mut JSContext,
) -> bool
Expand description

Returns true if incremental GC is enabled. Simply having incremental GC enabled is not sufficient to ensure incremental collections are happening. See the comment “Incremental GC” above for reasons why incremental GC may be suppressed. Inspection of the “nonincremental reason” field of the GCDescription returned by GCSliceCallback may help narrow down the cause if collections are not happening incrementally when expected.