summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug623859.js
blob: 06f04537cdbfd7a98d847b0996d29b22e4b0aca8 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| allow-oom
var size = 1000000;
var a = [];
for (var i = 0; i < size; ++i) {
    a[i] = null;
}
gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
for (var i = 0; i < size; ++i) {
    a[i] = [];
}