alexcrichton requested fitzgen for a review on PR #9577.
alexcrichton opened PR #9577 from alexcrichton:simplify-memory
to bytecodealliance:main
:
This is a series of commits which have the end-goal of removing the
RuntimeLinearMemory
trait and replacing it withwasmtime::LinearMemory
. In doing this though I wanted to simplify the trait to move more responsibilities up a layer so it's clearer what the safety contracts are and what exactly is required on behalf of embedders. This moves many of the responsibilities to a newLocalMemory
type rather than having most of the functionality implemented through trait methods. This provides, for example, a vector of having CoW support in Wasmtime without supporting it throughLinearMemory
(or not officially at least).Each commit here is probably best viewed one-at-a-time since this adds up to a number of changes but I've tried to keep things separated and have tests passing for each individual commit.
Fixes #9568
alexcrichton requested wasmtime-core-reviewers for a review on PR #9577.
alexcrichton updated PR #9577.
alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #9577.
alexcrichton updated PR #9577.
alexcrichton updated PR #9577.
github-actions[bot] commented on PR #9577:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api", "wasmtime:c-api"Thus the following users have been cc'd because of the following labels:
- fitzgen: fuzzing
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton updated PR #9577.
fitzgen submitted PR review:
Nice! One suggestion on the ascii diagram below, that's it.
fitzgen created PR review comment:
//! │ RuntimeLinearMemory ├─────────────┬───────────────┐ //! │ │ │ │ //! └──────────┬──────────┘ │ │
alexcrichton updated PR #9577.
alexcrichton has enabled auto merge for PR #9577.
alexcrichton merged PR #9577.
Last updated: Nov 22 2024 at 17:03 UTC