Function mozjs::jsapi::AddAssociatedMemory
source ยท pub unsafe extern "C" fn AddAssociatedMemory(
obj: *mut JSObject,
nbytes: usize,
use_: MemoryUse,
)
Expand description
Advise the GC of external memory owned by a JSObject. This is used to determine when to collect zones. Calls must be matched by calls to RemoveAssociatedMemory() when the memory is deallocated or no longer owned by the object.