summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1498177.js
blob: d423d47dcbc3c562689ecde6cf594b40306281ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
let a, b;
for (i=0; i < 300000; i++) {
    let c = { a: a, b: b };
    a = b;
    b = c;
}

gc();

// GCRuntime::setLargeHeapSizeMinBytes will change the low value to be one
// byte lower than the high value (if necessary).  But this blew up later
// when the values were mistakingly cast to float then compared, rather than
// kept as size_t.
gcparam('largeHeapSizeMin', 99);