From dea98a4362542d79c2186b5a79880b5478c070f5 Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Wed, 21 Jul 2021 17:43:43 +0000 Subject: [PATCH] Bug 1721168 - Make the JS shell's default GC slice budget the same as the browser's r=sfink This sets the budget to 5ms, as it is for the browser. Differential Revision: https://phabricator.services.mozilla.com/D120322 --- js/src/shell/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index bf8cf1d19290..f1b2227daa5a 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -12768,7 +12768,7 @@ int main(int argc, char** argv) { bool incrementalGC = !op.getBoolOption("no-incremental-gc"); JS_SetGCParameter(cx, JSGC_INCREMENTAL_GC_ENABLED, incrementalGC); - JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET_MS, 10); + JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET_MS, 5); JS_SetGCParameter(cx, JSGC_PER_ZONE_GC_ENABLED, true);