|
Summary
Invokes conditional garbage collection on the JS memory pool.
|
Syntax
void JS_MaybeGC(JSContext *cx);
|
Description
JS_MaybeGC performs a conditional garbage collection of JS objects, doubles, and strings that are no longer needed by a script executing in a specified JSContext , cx . This function checks that about 75% of available space has already been allocated to objects before peforming garbage collection. To force garbage collection regardless of the amount of allocated space, call JS_GC instead of JS_MaybeGC .
|
See Also
|