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

Enable copy-on-write memories for components #7459

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

alexcrichton
Copy link
Member

This commit fixes a mistake in component compilation where copy-on-write and lazy initialization of function tables was accidentally not performed. I believe this is an accidental regression from a previous refactor, and this commit now ensures that the shared infrastructure between components and core modules accounts for copy-on-write and lazy table initialization.

This commit fixes a mistake in component compilation where copy-on-write
and lazy initialization of function tables was accidentally not
performed. I believe this is an accidental regression from a previous
refactor, and this commit now ensures that the shared infrastructure
between components and core modules accounts for copy-on-write and lazy
table initialization.
@alexcrichton alexcrichton requested a review from a team as a code owner November 2, 2023 16:59
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team November 2, 2023 16:59
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Nov 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

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
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Any way we can write a regression test here?

@alexcrichton
Copy link
Member Author

Sure!

@alexcrichton alexcrichton added this pull request to the merge queue Nov 3, 2023
Merged via the queue into bytecodealliance:main with commit 40adf87 Nov 3, 2023
18 checks passed
@alexcrichton alexcrichton deleted the components-cow branch November 3, 2023 18:11
elliottt pushed a commit to elliottt/wasmtime that referenced this pull request Nov 3, 2023
* Enable copy-on-write memories for components

This commit fixes a mistake in component compilation where copy-on-write
and lazy initialization of function tables was accidentally not
performed. I believe this is an accidental regression from a previous
refactor, and this commit now ensures that the shared infrastructure
between components and core modules accounts for copy-on-write and lazy
table initialization.

* Add some tests
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.

2 participants