| ||||||
SummaryPerforms garbage collection in the JS memory pool. | ||||||
Syntaxvoid JS_GC(JSContext *cx); | ||||||
DescriptionJS_GC performs garbage collection, if necessary, of JS objects, doubles, and strings that are no longer needed by a script executing in a specified JSContext , cx . Garbage collection frees space in the memory pool so that it can be reused by the JS engine.
When you use
When your scripts create many objects, you may want to call
| ||||||
See Also
|