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

Virtual Machine Snapshots #68

Open
void4 opened this issue Mar 23, 2019 · 2 comments
Open

Virtual Machine Snapshots #68

void4 opened this issue Mar 23, 2019 · 2 comments
Labels
question Further information is requested

Comments

@void4
Copy link

void4 commented Mar 23, 2019

I want to take a snapshot of the full virtual machine state so that I can restore it possibly even on another machine (in an external function that was called during the .wasm execution).

It seems necessary to only serialize the VirtualMachine struct for this, is this correct?

@losfair
Copy link
Contributor

losfair commented Mar 27, 2019

Only fields related to the runtime state (including CallStack, CurrentFrame, Globals, Memory, Yielded, NumValueSlots, Gas) need to be serialized. Other fields can be reconstructed from the same WebAssembly file and the same configuration.

@losfair losfair added the question Further information is requested label Mar 27, 2019
@void4
Copy link
Author

void4 commented Mar 27, 2019

Thank you!

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

No branches or pull requests

2 participants