Stream: git-wasmtime

Topic: wasmtime / PR #2971 Add a safe method for accessing memor...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2021 at 22:05):

alexcrichton opened PR #2971 from helper to main:

This is currently a very common operation in host bindings where if wasm
gives a host function a relative pointer you'll want to simulataneously
work with the host state and the wasm memory. These two regions are
distinct and safe to borrow mutably simulataneously but it's not obvious
in the Rust type system that this is so, so add a helper method here to
assist in doing so.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2021 at 22:22):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 08 2021 at 14:37):

alexcrichton merged PR #2971.


Last updated: Nov 22 2024 at 17:03 UTC