Implement configuration pref for Generational Garbage Collection.

Pref: javascript.options.mem.gc_generational
This resolves #20
This commit is contained in:
wolfbeast 2017-07-19 01:24:28 +02:00 committed by Roy Tam
commit 935b074787
4 changed files with 20 additions and 0 deletions

View file

@ -1768,6 +1768,9 @@ typedef enum JSGCParamKey {
extern JS_PUBLIC_API(void)
JS_SetGCParameter(JSContext* cx, JSGCParamKey key, uint32_t value);
extern JS_PUBLIC_API(void)
JS_SetGGCMode(JSContext* cx, bool enabled);
extern JS_PUBLIC_API(uint32_t)
JS_GetGCParameter(JSContext* cx, JSGCParamKey key);