life icon indicating copy to clipboard operation
life copied to clipboard

Virtual Machine Snapshots

Open void4 opened this issue 6 years ago • 2 comments

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?

void4 avatar Mar 23 '19 14:03 void4

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 avatar Mar 27 '19 14:03 losfair

Thank you!

void4 avatar Mar 27 '19 14:03 void4