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

Snapshotting #101

Open
matiasinsaurralde opened this issue Dec 26, 2019 · 0 comments
Open

Snapshotting #101

matiasinsaurralde opened this issue Dec 26, 2019 · 0 comments

Comments

@matiasinsaurralde
Copy link

Hi, would you be able to explain the snapshotting flow?

From what I've seen it should be used as follows:

  • A new VM is initialized, with a given WASM module.
  • You take a snapshot with snapshot := vm.ReadSnapshot().
  • You start another VM and use newVm.WriteSnapshot(snapshot)
  • The new VM should contain the same state, e.g. be able to find functions with GetFunctionExport, etc.

Main question is, how do I start a new VM without specifying a raw WASM module (seems that exec.NewVirtualMachine always expects this)

Best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant