AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_MaybeGC (Function)
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 JSContextcx. 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:
JS_GC
JS_malloc
JS_realloc

[sh-index] Back to list of manuals