summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-04-07 13:51:49 -0700
committerGitHub <noreply@github.com>2021-04-07 13:51:49 -0700
commitb3484a7a44de4d46b0fec598074ca3f8b33a293c (patch)
tree1e5944a0019f19827ce7b471f3c211cee6410b9f /src/pass.h
parentcb8cc0843ee79242c9c5921f368876b3734d5269 (diff)
downloadbinaryen-b3484a7a44de4d46b0fec598074ca3f8b33a293c.tar.gz
binaryen-b3484a7a44de4d46b0fec598074ca3f8b33a293c.tar.bz2
binaryen-b3484a7a44de4d46b0fec598074ca3f8b33a293c.zip
[GC] Do not crash on unreasonable GC array allocations in interpreter; trap (#3559)
The spec does not mention traps here, but this is like a JS VM trapping on OOM - a runtime limitation is reached. As these are not specced traps, I did not add them to effects.h. Note how as a result the optimizer happily optimizes into a nop an unused allocation of an array of size unsigned(-1), which is the behavior we want.
Diffstat (limited to 'src/pass.h')
0 files changed, 0 insertions, 0 deletions