You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wasm_export.h function defines wasm_runtime_terminate. I have a WASM binary that maintains their own state inside a static struct.
I invoke a compute function of the binary. If i terminate it from the outside while it does some calculations, do the changes that I applied to the static variable already persist inside the module's store? Or are these changes only "commited" if the module exits successfully?
I am basically trying to get "atomic" WASM binary execution. I implemented an example project but get mixed results, which I would assume means that the store state is updated in a non-atomic way. And I couldn't find builtin rollback functionality.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The
wasm_export.h
function defineswasm_runtime_terminate
. I have a WASM binary that maintains their own state inside a static struct.I invoke a
compute
function of the binary. If i terminate it from the outside while it does some calculations, do the changes that I applied to the static variable already persist inside the module's store? Or are these changes only "commited" if the module exits successfully?I am basically trying to get "atomic" WASM binary execution. I implemented an example project but get mixed results, which I would assume means that the store state is updated in a non-atomic way. And I couldn't find builtin rollback functionality.
Beta Was this translation helpful? Give feedback.
All reactions