From 8a1dc97a5aaf1f245b8bbf72de0e9458d15eeb81 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 19 Jul 2017 01:24:28 +0200 Subject: Implement configuration pref for Generational Garbage Collection. Pref: javascript.options.mem.gc_generational This resolves #20 --- js/src/jsapi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/src/jsapi.h') diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 46aa15947..6700a6c51 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -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); -- cgit v1.2.3