From b01d17cb618fc9ecf8aafd675442cf07603207b9 Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Fri, 24 May 2024 14:23:28 +0000 Subject: [PATCH] Bug 1898615 - Fix intermittent failures for gc/gczeal.js JIT test r=sfink Zeal mode 10 polls for background sweeping to finish so a collection in this mode can take an unbounded length of time. Differential Revision: https://phabricator.services.mozilla.com/D211512 --- js/src/jit-test/tests/gc/gczeal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/jit-test/tests/gc/gczeal.js b/js/src/jit-test/tests/gc/gczeal.js index a20c8a8fac32..2308881c2f9e 100644 --- a/js/src/jit-test/tests/gc/gczeal.js +++ b/js/src/jit-test/tests/gc/gczeal.js @@ -35,6 +35,7 @@ function countGCs(allocCount) { for (let i = 0; i < allocCount - 1 ; i++) { a.push({x: i}); } + finishgc(); return { minor: gcparam("minorGCNumber") - init.minor,