summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1867453.js
blob: a2e6cf65302fff130f78af20be33e497ab850c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
gczeal(0);
gcparam("minNurseryBytes", 256 * 1024);
gcparam("maxNurseryBytes", 256 * 1024);
gc();

let initialCount = gcparam("minorGCNumber");

let array = new Array(500000);
array.fill(0);
let keys = Object.keys(array);

let count = gcparam("minorGCNumber") - initialCount;
assertEq(count <= 3, true);