Skip to content

Enable copy-on-write memories for components#7459

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:components-cow
Nov 3, 2023
Merged

Enable copy-on-write memories for components#7459
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:components-cow

Conversation

@alexcrichton
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 2, 2023

Subscribe to Label Action

cc @peterhuene

Details 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
Copy Markdown
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
Copy Markdown
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
@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