Debian Codegraph @

js/src/jit-test/tests/gc/bug-1557928.js

raw
1 // |jit-test| skip-if: helperThreadCount() === 0
2
3 var g = newGlobal({ newCompartment: true });
4 var dbg = new Debugger;
5 var gw = dbg.addDebuggee(g);
6 lfOffThreadGlobal = g;
7 lfOffThreadGlobal.offThreadCompileToStencil(`
8 grayRoot()[0] = "foo";
9 `);
10 var stencil = lfOffThreadGlobal.finishOffThreadStencil();
11 lfOffThreadGlobal.evalStencil(stencil);
12 var g = newGlobal({newCompartment: true});
13 var gw = dbg.addDebuggee(g);
14 lfOffThreadGlobal = null;
15 gc();
16 schedulezone(this);
17 schedulezone('atoms');
18 gc('zone');
19