LibJS: Delete fully-empty HeapBlocks after garbage collection

We now deallocate GC blocks when they are found to have no live cells
inside them.
This commit is contained in:
Andreas Kling 2020-03-21 11:45:50 +01:00
parent bc002f807a
commit 2106dafd62
Notes: sideshowbarker 2024-07-19 08:12:27 +09:00
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function foo() {
var a = [];
for (var i = 0; i < 4000; ++i) {
a.push("string" + i);
}
}
foo();