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
This commit is contained in:
Jon Coppeard 2024-05-24 14:23:28 +00:00
parent 249ac98ffe
commit b01d17cb61

View file

@ -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,