[coop] Throw exception from finally clause in native-to-managed wrapper
authorLudovic Henry <ludovic@xamarin.com>
Mon, 9 May 2016 15:57:51 +0000 (11:57 -0400)
committerLudovic Henry <ludovic@xamarin.com>
Mon, 16 May 2016 14:57:02 +0000 (10:57 -0400)
commita34627addf7eac24b05fc58afbb02c1de7fc4fa2
tree7ed33f347ef9dd3c5bc1366e8b2cb08eb4bd87ed
parenta936d1d021535b370a796e88b4efbb0ec09132e1
[coop] Throw exception from finally clause in native-to-managed wrapper

If we do not throw it from the finally clause, then in case of a Thread.Abort, we will not rethrow the catched exception, but the ThreadAbortException, and this without using the callback, leading to native stack unwinding.
mono/metadata/marshal.c