Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Deterministic stack metering instrumentation #8393

Closed
pepyakin opened this issue Mar 18, 2021 · 0 comments · Fixed by #9069
Closed

Deterministic stack metering instrumentation #8393

pepyakin opened this issue Mar 18, 2021 · 0 comments · Fixed by #9069

Comments

@pepyakin
Copy link
Contributor

Within the context of #8153, in order to make execution of a PVF deterministic we should resort to instrumentation that would make engines to fail at the same stack height.

The reason why we need that is because the WebAssembly spec defines only that the stack is limited and should be exhausted. It doesn't define when and how it is measured. Some implementations may measure elements pushed on the stack, others may leverage the native stack and rely on stack guards, etc. The algorithm of instrumentation is described here.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant