Skip to content

Add BREAKPOINT_VALUE_MEMORY_LIMIT#18

Merged
camilbancioiu merged 1 commit into
masterfrom
memory-limit-breakpoint
Mar 1, 2022
Merged

Add BREAKPOINT_VALUE_MEMORY_LIMIT#18
camilbancioiu merged 1 commit into
masterfrom
memory-limit-breakpoint

Conversation

@camilbancioiu
Copy link
Copy Markdown

This PR changes the breakpoint value set by OpcodeControl when too many memory.grow opcodes are run. Previously, the breakpoint value was set to BREAKPOINT_VALUE_EXECUTION_FAILED, now it's BREAKPOINT_VALUE_MEMORY_LIMIT. This way, the VM can distinguish between a generic failure and a failure caused by over-allocation of WASM memory.

@camilbancioiu camilbancioiu merged commit 090754a into master Mar 1, 2022
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

Successfully merging this pull request may close these issues.

4 participants