Function mozjs::jsapi::SetDoCycleCollectionCallback
source ยท pub unsafe extern "C" fn SetDoCycleCollectionCallback(
cx: *mut JSContext,
callback: Option<unsafe extern "C" fn(_: *mut JSContext)>,
) -> Option<unsafe extern "C" fn(_: *mut JSContext)>
Expand description
The purge gray callback is called after any COMPARTMENT_REVIVED GC in which the majority of compartments have been marked gray.