Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor shared memory internals, expose embedder methods #5311

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

alexcrichton
Copy link
Member

This commit refactors the internals of wasmtime_runtime::SharedMemory a bit to expose the necessary functions to invoke from the wasmtime::SharedMemory layer. Notably some items are moved out of the RwLock from prior, such as the type and the VMMemoryDefinition. Additionally the organization around the atomic_* methods has been redone to ensure that the wasmtime-layer abstraction has a single method to call into which everything else uses as well.

This commit refactors the internals of `wasmtime_runtime::SharedMemory`
a bit to expose the necessary functions to invoke from the
`wasmtime::SharedMemory` layer. Notably some items are moved out of the
`RwLock` from prior, such as the type and the `VMMemoryDefinition`.
Additionally the organization around the `atomic_*` methods has been
redone to ensure that the `wasmtime`-layer abstraction has a single
method to call into which everything else uses as well.
@alexcrichton
Copy link
Member Author

cc @haraldh

@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Nov 21, 2022
@github-actions
Copy link

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Contributor

@haraldh haraldh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although it could have been split into more commits

@abrown abrown merged commit 6ce2ac1 into bytecodealliance:main Nov 22, 2022
@alexcrichton alexcrichton deleted the refactor-shared-memory branch March 28, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants