summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1667336.js
blob: 57742f0e5e21754b5640a4bda68d3e8d72db2e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| slow; --ion-offthread-compile=off; skip-if: helperThreadCount() === 0

var g = newGlobal();
gczeal(9, 1);
gczeal(11, 2);
g.offThreadCompileToStencil("");
setJitCompilerOption("offthread-compilation.enable", 1);

for (let i = 0 ; i < 3000; i++) {
  loadFile();
}

function loadFile() {
  try {
    x;
  } catch(exc) {}
}