Fix NativeAOT rethrow bug (#88113)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 29 Jun 2023 06:02:19 +0000 (08:02 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 06:02:19 +0000 (23:02 -0700)
commit8899ed4d851e8a56938c6a7fb4f38e0b81d83f13
treefb26615200f32c60bc35f8ab1157189c3b69ae86
parent15c5f8bb2589008aff55eb400aa058e715f617b2
Fix NativeAOT rethrow bug (#88113)

* Fix NativeAOT rethrow bug

The rethrowing incorrectly starts searching for exception clause based
on the previously searched clause for the exception being rethrown. It
should always start from the beginning.

* Cleanup and a regression test
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
src/tests/Regressions/coreclr/GitHub_88128/test88128.cs [new file with mode: 0644]
src/tests/Regressions/coreclr/GitHub_88128/test88128.csproj [new file with mode: 0644]