mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 02:52:52 +00:00
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:
parent
bc002f807a
commit
2106dafd62
Notes:
sideshowbarker
2024-07-19 08:12:27 +09:00
Author: https://github.com/awesomekling
Commit: 2106dafd62
2 changed files with 23 additions and 0 deletions
8
Base/home/anon/js/gc-strings.js
Normal file
8
Base/home/anon/js/gc-strings.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
function foo() {
|
||||
var a = [];
|
||||
for (var i = 0; i < 4000; ++i) {
|
||||
a.push("string" + i);
|
||||
}
|
||||
}
|
||||
|
||||
foo();
|
Loading…
Add table
Add a link
Reference in a new issue