[wasm] Fix for getelema1 crash & cpblk crash in jiterpreter (#87246)
authorKatelyn Gadd <kg@luminance.org>
Thu, 8 Jun 2023 16:33:53 +0000 (09:33 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 16:33:53 +0000 (09:33 -0700)
commit1d5ee1c9e270f4b0738e9d1f414a14883c74dc68
treed06337981a239b1d6e21f4f755ed3f17b7a2eab9
parent194cdd1c5e8fcceea4805db73d40fb85302d56d2
[wasm] Fix for getelema1 crash & cpblk crash in jiterpreter (#87246)

* Fix for getelema1 crash in specific scenarios
* Check more of the zero page for nonzero data
* If we ever see garbage in the zero page disable it permanently
* Log an error if garbage appears in the zero page after startup
* Overhaul trace local variable naming and reuse
* Fix count not being initialized for cpblk in some cases
src/mono/wasm/runtime/jiterpreter-support.ts
src/mono/wasm/runtime/jiterpreter-trace-generator.ts
src/mono/wasm/runtime/jiterpreter.ts