emscripten-core / emscripten-core/emscripten
How should I access the WebAssembly.Memory instance?
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
I'm jitting WASM modules inside of a running emscripten-compiled application, which means I need to grab the function table and heap to share them with the jitted code.
In a single-threaded app this seems to work fine, but I'm having trouble getting the Memory object in a threaded app. I've been doing `Module["asm"]["memory"]` but that doesn't seem to work. How should I be doing this? Looking through the code in the emscripten repo I wasn't able to figure it out.
EDIT: To be clear, in the threaded app I get 'error: memory import must be a WebAssembly.Memory object'.
Contributor guide
Assessment
This issue has not been assessed yet.