blob: a382ee339d51e0b0d2d664af001f94cf3918adca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |jit-test| slow; skip-if: typeof evalInWorker === 'undefined' || helperThreadCount() === 0
gcslice(11);
evalInWorker("print('helo world');");
for (i = 0; i < 100000; i++) {}
evalInWorker("\
for (var i = 0; i < 10; i++) { \
var o = {}; \
for (var j = 0; j < 100; j++) \
o['a' + j] = j; \
JSON.stringify(o); \
o = null; \
gc(); \
}");
for (var i = 0; i < 10; i++) {
gc();
for (var j = 0; j < 100000; j++) {}
}
|