Debian Codegraph @

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

raw
1
2 // Set a nursery size larger than the current nursery size.
3 gcparam("minNurseryBytes", 1024 * 1024);
4 gcparam("maxBytes", gcparam("gcBytes") + 4096);
5
6 // Allocate something in the nursery.
7 let obj = {'foo': 38, 'bar': "A string"};
8
9 // Trigger a last-ditch GC.
10 print(gc(0, "last-ditch"));
11