Stream: wasmtime

Topic: ✔ custom memory APIs for Wasmtime


view this post on Zulip Tyler Rockwood (Nov 21 2023 at 02:41):

Hello! I have a question on with_host_memory and with_stack_memory APIs. Does Wasmtime assume the memory returned from those APIs are 0 filled? I know mmap anonymous zero fills the memory, but I'm not sure if the runtime relies on that or not.

view this post on Zulip Alex Crichton (Nov 21 2023 at 02:54):

Yes, any request for memory creation and memory growth assumes that the contents are zero-filled

view this post on Zulip Tyler Rockwood (Nov 21 2023 at 02:57):

Thanks, that explains the behavior I'm seeing :)

view this post on Zulip Notification Bot (Nov 21 2023 at 02:57):

Tyler Rockwood has marked this topic as resolved.


Last updated: Dec 23 2024 at 14:03 UTC