michael@0: /* Exercise the path where we want to collect a new compartment in the middle of incremental GC. */ michael@0: michael@0: var g1 = newGlobal(); michael@0: var g2 = newGlobal(); michael@0: michael@0: schedulegc(g1); michael@0: schedulegc(g2); michael@0: gcslice(0); michael@0: schedulegc(g1); michael@0: gcslice(1); michael@0: gcslice();