Please note, this is a STATIC archive of website from 03 Nov 2016, does not collect or store any user information, there is no "phishing" involved.


This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 31

Adjust performance parameters related to garbage collection based on available memory.


JS_SetGCParametersBasedOnAvailableMemory(JSRuntime *rt, uint32_t availMem);
Name Type Description
rt JSRuntime * The runtime to configure.
value uint32_t The value of available memory in megabytes.


JS_SetGCParametersBasedOnAvailableMemory adjusts the parameters of the garbage collection based on available memory.

See bug 950044 for details.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,