[Webkit-unassigned] [Bug 281656] Web Inspector: Memory leak with high-bandwidth operations on web workers when inspector is open

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 7 06:52:47 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=281656

--- Comment #3 from Andrew Hodel <andrewhodel at gmail.com> ---
If you create a `Worker` that has a `postMessage` function that includes a transferred object and never use the `Worker` Safari never deallocates memory.

There is no reason for it, there is a return statement in the `Promise` that sends a message the `Worker`.  If that return statement was not there, it would be allocated but it is being allocated anyway and if it is specified as a transferred object (meaning in the 2nd argument's array with postMessage) it gets allocated and not used every time it would be called.

This means that when you write the code to work with browsers that support Workers, if you use transferred objects Safari as described in the previous paragraph, Safari continues to have a memory leak.

-- 
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/20241107/c0964f5e/attachment.htm>


More information about the webkit-unassigned mailing list