summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/multi-03.js
blob: fd9bd0830a6ee37a250db6fbb8fd512a9ca5de4a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Exercise the path where we want to collect a new compartment in the middle of incremental GC. */

var g1 = newGlobal();
var g2 = newGlobal();

schedulegc(g1);
schedulegc(g2);
gcslice(0); // Start IGC, but don't mark anything.
schedulegc(g1);
gcslice(1);
gcslice();