Stream: wamr

Topic: WAMR Memory Zero-ing


view this post on Zulip Friday More (Jul 17 2024 at 00:52):

Does WAMR have a memory zero-ing feature like Wasmtime? I have a more detailed question here: https://github.com/bytecodealliance/wasm-micro-runtime/discussions/3623
Thanks

We have a use case where we want to reset memory (e.g. memset 0) after each execution of a WASM module. The host platform is Linux. The WASM code is meant to be stateless and would be provided by a...

view this post on Zulip Friday More (Jul 17 2024 at 21:41):

Does WAMR have a memory zero-ing feature like Wasmtime? I have a more detailed question here: https://github.com/bytecodealliance/wasm-micro-runtime/discussions/3623
<Moved from the wamr channel to get more eyes>
Thanks

We have a use case where we want to reset memory (e.g. memset 0) after each execution of a WASM module. The host platform is Linux. The WASM code is meant to be stateless and would be provided by a...

view this post on Zulip Notification Bot (Jul 18 2024 at 15:22):

A message was moved here from #general > WAMR Memory Zero-ing by fitzgen (he/him).

view this post on Zulip Steve (May 16 2025 at 03:13):

Friday More said:

Does WAMR have a memory zero-ing feature like Wasmtime? I have a more detailed question here: https://github.com/bytecodealliance/wasm-micro-runtime/discussions/3623
<Moved from the wamr channel to get more eyes>
Thanks

I'm no WAMR expert, but I think you can provide your own memory allocator to the wasm_runtime_full_init function and achieve the desired results. I'm not sure if it's a viable solution but this is something I will also need and that was the route I planned to take. Maybe someone else with more knowledge about the project can also chime in.


Last updated: Jan 09 2026 at 13:15 UTC