| Summary: | Reload tab and allocate WASM memory may cause the outofmemory error. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | fishel.feng | ||||
| Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | justin_michaud, keith_miller, mark.lam, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 16 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 16 | ||||||
| Attachments: |
|
||||||
Created attachment 468196 [details] oom error We allocate a shared memory by this function, but after refreshing the page multiple times, we will get the memory failed without any error in console. After adding a try...catch, we can catch an error OutOfMemory. It seems that the memory is not released after refreshing the page, causing the new memory to fail to initialize. function AllocateWasmSharedMemory(init, max) { return new WebAssembly.Memory({ initial: init, maximum: max, shared: true, }); }