We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

JS SetGCParameter

Adjust performance parameters related to garbage collection.


typedef enum JSGCParamKey {
    JSGC_STACKPOOL_LIFESPAN Added in SpiderMonkey 1.8 Obsolete since JSAPI 12,
    JSGC_TRIGGER_FACTOR Added in SpiderMonkey 1.8.1 Obsolete since JSAPI 6,
    JSGC_BYTES Added in SpiderMonkey 1.8.1,
    JSGC_NUMBER Added in SpiderMonkey 1.8.1
} JSGCParamKey;

uint32 JS_GetGCParameter(JSRuntime *rt, JSGCParamKey key);Added in SpiderMonkey 1.8.1

void JS_SetGCParameter(JSRuntime *rt, JSGCParamKey key, uint32 value);
Name Type Description
rt JSRuntime * The runtime to configure.
key JSGCParamKey Specifies which garbage collection parameter to get or set.
value uint32 (JS_SetGCParameter only) The value to assign to the parameter.


MXR ID Search for JS_GetGCParameter
MXR ID Search for JS_SetGCParameter

Document Tags and Contributors

Last updated by: Jorend,