blob: 5b90e1418673305490e5dfbb2ffdd57d6e970957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// |jit-test| skip-if: helperThreadCount() === 0
let initialGCHelperThreadCount = gcparam('helperThreadCount');
let prevHelperThreadCount = helperThreadCount();
for (let i of [0, 1, 4, 8, 4, 0]) {
gcparam('markingThreadCount', i);
assertEq(gcparam('markingThreadCount'), i);
assertEq(gcparam('helperThreadCount'), initialGCHelperThreadCount);
assertEq(true, helperThreadCount() >= Math.max(prevHelperThreadCount, i));
prevHelperThreadCount = helperThreadCount();
}
|