mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 906525 - Re-enable PJS timeout tests. (r=nmatsakis)
This commit is contained in:
parent
c0186f5622
commit
744e4f50c4
27
js/src/jit-test/tests/parallel/gc-timeout.js
Normal file
27
js/src/jit-test/tests/parallel/gc-timeout.js
Normal file
@ -0,0 +1,27 @@
|
||||
// |jit-test| exitstatus: 6;
|
||||
|
||||
// One sneaky way to run GC during a parallel section is to invoke the
|
||||
// gc() function during the parallel timeout!
|
||||
|
||||
load(libdir + "parallelarray-helpers.js");
|
||||
|
||||
function iterate(x) {
|
||||
while (x == 2046) {
|
||||
// for exactly one index, this infinitely loops!
|
||||
// this ensures that the warmup doesn't loop.
|
||||
}
|
||||
return 22;
|
||||
}
|
||||
|
||||
function timeoutfunc() {
|
||||
print("Timed out, invoking the GC");
|
||||
gc();
|
||||
return false;
|
||||
}
|
||||
|
||||
timeout(1, timeoutfunc);
|
||||
|
||||
if (getBuildConfiguration().parallelJS)
|
||||
Array.buildPar(2048, iterate);
|
||||
else
|
||||
while(true);
|
17
js/src/jit-test/tests/parallel/timeout.js
Normal file
17
js/src/jit-test/tests/parallel/timeout.js
Normal file
@ -0,0 +1,17 @@
|
||||
// |jit-test| exitstatus: 6;
|
||||
|
||||
load(libdir + "parallelarray-helpers.js");
|
||||
|
||||
function iterate(x) {
|
||||
while (x == 2046) {
|
||||
// for exactly one index, this infinitely loops!
|
||||
// this ensures that the warmup doesn't loop.
|
||||
}
|
||||
return 22;
|
||||
}
|
||||
|
||||
timeout(1);
|
||||
if (getBuildConfiguration().parallelJS)
|
||||
Array.buildPar(2048, iterate);
|
||||
else
|
||||
while (true);
|
Loading…
Reference in New Issue
Block a user