diff options
author | Alon Zakai <azakai@google.com> | 2021-04-07 13:51:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 13:51:49 -0700 |
commit | b3484a7a44de4d46b0fec598074ca3f8b33a293c (patch) | |
tree | 1e5944a0019f19827ce7b471f3c211cee6410b9f /src/wasm-emscripten.h | |
parent | cb8cc0843ee79242c9c5921f368876b3734d5269 (diff) | |
download | binaryen-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/wasm-emscripten.h')
0 files changed, 0 insertions, 0 deletions