[Webkit-unassigned] [Bug 257622] Add a way to run incremental GC sweeps during runloop idle time in between rendering updates
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 1 14:57:58 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=257622
Jarred Sumner <jarred at jarredsumner.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jarred at jarredsumner.com
--- Comment #1 from Jarred Sumner <jarred at jarredsumner.com> ---
We had a similar issue in Bun and ended up doing this: https://github.com/oven-sh/bun/blob/4378ef8e97839f950ddfa180e466d0a8db187681/src/bun.js/event_loop.zig#L320
Just before the event loop idles, we check if the heap size changed since the previous check and if so, we schedule the garbage collector asynchronously. Then every so often we run a synchronous GC
It fixed issues where Bun’s memory usage permanently would go up. But we still have issues with synchronous work. It doesn’t go down much if you do lots of blocking synchronous work
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230601/6356318b/attachment.htm>
More information about the webkit-unassigned
mailing list