[Webkit-unassigned] [Bug 236268] [WebAssembly][Modules] Support Wasm module loading in WebCore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 13 22:35:55 PST 2022


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

--- Comment #10 from Yusuke Suzuki <ysuzuki at apple.com> ---
One thing I would like to comment is that, WebCore can replace underlying values of CachedResource to shrink memory footprint. (NetworkProcess can decide to put the data on disk, allocate disk-backed mmap-ed data, notify it to WebContent process, and replace the existing one with this disk-backed one).

I think,
1. We should ensure that wasm's CachedResource is categorilized as mayTryReplaceEncodedData() => true
2. Then, when reading data, let's hold underlying Ref<SharedBuffer> while touching (but not holding it forever), since it can be replaced with new mmap-ed one.

-- 
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/20220214/0bb5df41/attachment.htm>


More information about the webkit-unassigned mailing list