Translate AV in RhpByRefAssignRef to NullReferenceException (#85575)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Mon, 1 May 2023 11:56:46 +0000 (20:56 +0900)
committerGitHub <noreply@github.com>
Mon, 1 May 2023 11:56:46 +0000 (04:56 -0700)
commit7a07dd613ba50fecf19345bf84ba2a7d75f21c74
tree62ddc835afaabff300077a6ac940eee58bb0bf35
parent23fd17cea3fcf967d978c7cf941ffead61fde8c0
Translate AV in RhpByRefAssignRef to NullReferenceException (#85575)

Fixes dotnet/runtimelab#197.

Ran into this again when curiosity made my try a newly added JIT test with NativeAOT.
src/coreclr/nativeaot/Runtime/EHHelpers.cpp
src/coreclr/nativeaot/Runtime/amd64/WriteBarriers.S
src/coreclr/nativeaot/Runtime/amd64/WriteBarriers.asm
src/coreclr/nativeaot/Runtime/arm/WriteBarriers.S
src/coreclr/nativeaot/Runtime/arm64/WriteBarriers.S
src/coreclr/nativeaot/Runtime/arm64/WriteBarriers.asm
src/tests/issues.targets