[interp] Fix resuming into interp frame during EH (#12092)
commit1b242b8960f24b582a7a4612185a70b178060eda
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 3 Jan 2019 15:05:57 +0000 (3 17:05 +0200)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 3 Jan 2019 15:05:57 +0000 (3 10:05 -0500)
tree94e9eb28d135fa395fa6538d977e4ac208617d38
parent5b220bf1dc4d0a328ab7dd3ca6f8533000e9cf90
[interp] Fix resuming into interp frame during EH (#12092)

[interp] Fix resuming into interp frame during EH

During EH, we can have the same frame twice on the stack, the original one and when invoking clauses in the same frame from EH. When having a resume state, we need to check if we should catch it in the current frame, or the original.

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->
mono/mini/ee.h
mono/mini/interp-stubs.c
mono/mini/interp/interp-internals.h
mono/mini/interp/interp.c
mono/mini/mini-exceptions.c
mono/tests/Makefile.am
mono/tests/exception21.cs [new file with mode: 0644]