Debian Codegraph @

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

raw
1 // |jit-test| --fuzzing-safe; --ion-offthread-compile=off; --ion-warmup-threshold=10; skip-if: (getBuildConfiguration("android") && getBuildConfiguration("debug") && getBuildConfiguration("arm64"))
2
3 // Test that Nursery::disable() waits for poisoning to finish before
4 // discarding and re-poisoning its chunks.
5
6 for(var i = 0; i < 100; i++) {
7 try {
8 evalInWorker(`
9 function testOneSize(current_size) {
10 var eval_string = 'obj = {';
11 for (var current = 0; current <= current_size; ++current)
12 eval_string += 'k' + current + ':' + current + ','
13 }
14 testOneSize(1023);
15 testOneSize(1024);
16 gczeal(4);
17 `);
18 } catch (exc) {}
19 }
20