You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement support for ResizableArrayBuffer/GrowableSharedArrayBuffer integration #24287
This proposal has been implemented in engines, and we should implement support for it in Emscripten. Specifically, that would mean switching to RAB/GSAB to back the typed heap views; with pthreads + growable memories, this would allow us to avoid checking for detachment on every heap reference. We might also want to do it with RAB in the non-threaded case (since the behavior of RAB matches wasm memories more closely) but that seems like less of a big deal.
There are a couple of open questions still in the spec (see discussion in the recent CG meeting but it probably doesn't block starting on this.
It looks like the feature we would depend on here is Memory.toResizableBuffer() which is currently still behind --experimental-wasm-rab-integration in chrome and node.
Activity
sbc100 commentedon May 8, 2025
Do we need a flag to enable it node and/or chrome for testing?
dschuff commentedon May 9, 2025
For Chrome, I don't think so, it seems to be available without a flag. I'm not sure about node.
kleisauke commentedon Jul 10, 2025
This feature is part of Baseline 2024 and is available in Chrome 111, Firefox 128, and Safari 16.4.
https://webstatus.dev/features/resizable-buffers
It's also included in Node.js 20.0.0 and Deno 1.33.0.
https://nodejs.org/en/blog/announcements/v20-release-announce#v8-113
https://deno.com/blog/v1.33#v8-114
[WiP] Build with `-sALLOW_MEMORY_GROWTH`
Add pthread+memgrowth tests to test_other.py. NFC
Add pthread+memgrowth tests to test_other.py. NFC
Enable growable shared array buffers
sbc100 commentedon Jul 10, 2025
It looks like the feature we would depend on here is
Memory.toResizableBuffer()which is currently still behind--experimental-wasm-rab-integrationin chrome and node.Enable growable shared array buffers
kleisauke commentedon Jul 11, 2025
You're right, I didn't realize it also required the
WebAssembly.Memory.toResizableBuffer()API. Hopefully that stabilizes soon.Add pthread+memgrowth tests to test_other.py. NFC (#24682)
Enable growable shared array buffers
Enable growable shared array buffers
Enable growable shared array buffers
Add pthread+memgrowth tests to test_other.py. NFC (emscripten-core#24682
Enable growable shared array buffers
Enable growable shared array buffers
Enable growable shared array buffers
Enable growable shared array buffers
Enable growable shared array buffers
Enable growable shared array buffers
dschuff commentedon Jul 11, 2025
I think it will stabilize soon. There is discussion on WebAssembly/spec#1895 and a couple of PRs in flight (e.g. WebAssembly/spec#1871)
Enable growable shared array buffers
Enable growable array buffers (emscripten-core#24684)
Add pthread+memgrowth tests to test_other.py. NFC (emscripten-core#24682
Enable growable array buffers (emscripten-core#24684)