[gjs/mozjs78: 36/50] engine: Update flags. - JSGC_MAX_MALLOC_BYTES was removed. - JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMI
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 36/50] engine: Update flags. - JSGC_MAX_MALLOC_BYTES was removed. - JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMI
- Date: Tue, 4 Aug 2020 06:31:40 +0000 (UTC)
commit 08a5d2f7e4475cc3069bf25dec28e157b21e3eb4
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:22:35 2020 -0500
engine: Update flags.
- JSGC_MAX_MALLOC_BYTES was removed.
- JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMIC_HEAP_GROWTH are now defaults.
- JSGC_SLICE_TIME_BUDGET is now JSGC_SLICE_TIME_BUDGET_MS.
- setIon is now setWasmIon
- setBaseline is now setWasmBaseline
gjs/engine.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index f23c47d4..25df18a7 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -213,13 +213,10 @@ JSContext* gjs_create_js_context(GjsContextPrivate* uninitialized_gjs) {
// commented are defaults in moz-24
JS_SetNativeStackQuota(cx, 1024 * 1024);
- JS_SetGCParameter(cx, JSGC_MAX_MALLOC_BYTES, 128 * 1024 * 1024);
JS_SetGCParameter(cx, JSGC_MAX_BYTES, -1);
JS_SetGCParameter(cx, JSGC_MODE, JSGC_MODE_INCREMENTAL);
- JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET, 10); /* ms */
+ JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET_MS, 10); /* ms */
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_TIME_LIMIT, 1000); /* ms */
- JS_SetGCParameter(cx, JSGC_DYNAMIC_MARK_SLICE, true);
- JS_SetGCParameter(cx, JSGC_DYNAMIC_HEAP_GROWTH, true);
// JS_SetGCParameter(cx, JSGC_LOW_FREQUENCY_HEAP_GROWTH, 150);
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MIN, 150);
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MAX, 300);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]