Skip to content

Conversation

@alexcrichton
Copy link
Member

Instead of copying all memory out of a store only copy the contents of the data segments that are created. This refactors the snapshotting process to work with data segments purely with ranges first and then copy out the data at the end once all the ranges have settled. This additionally, while refactoring, adds 64-bit memory support to snapshotting by ensuring that data segments have the right type of offset annotated.

Instead of copying all memory out of a store only copy the contents of
the data segments that are created. This refactors the snapshotting
process to work with data segments purely with ranges first and then
copy out the data at the end once all the ranges have settled. This
additionally, while refactoring, adds 64-bit memory support to
snapshotting by ensuring that data segments have the right type of
offset annotated.
@alexcrichton alexcrichton requested a review from a team as a code owner October 20, 2025 18:55
@alexcrichton alexcrichton requested review from dicej and fitzgen and removed request for a team and dicej October 20, 2025 18:55
@github-actions github-actions bot added the wizer Issues related to Wizer snapshotting, pre-initialization, and the `wasmtime wizer` subcommand label Oct 20, 2025
@github-actions
Copy link

Subscribe to Label Action

cc @fitzgen

This issue or pull request has been labeled: "wizer"

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

  • fitzgen: wizer

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.

Very nice, thanks!

@fitzgen fitzgen added this pull request to the merge queue Oct 21, 2025
Merged via the queue into bytecodealliance:main with commit c7dc0eb Oct 21, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wizer Issues related to Wizer snapshotting, pre-initialization, and the `wasmtime wizer` subcommand

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants