[runtime] Set exit code on unhandled exception even if a managed handler is present
commitb7d32e7e245ab985d73eb50830310920ac411a01
authorLudovic Henry <ludovic@xamarin.com>
Wed, 2 Mar 2016 13:12:13 +0000 (2 13:12 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Tue, 8 Mar 2016 11:32:18 +0000 (8 11:32 +0000)
tree5d4c9980e5fbf6674466c9a436cb260fd98dc41b
parenteaa4d8c4406723920e4957a62aa388dd4f31bd4a
[runtime] Set exit code on unhandled exception even if a managed handler is present

In case we would add a AppDomain.CurrentDomain.UnhandledException callback, we would not exit the VM in case of unhandled exception.
This goes against the expected behaviour, as we should indeed call these managed callbacks in all cases, but they should not stop the VM from exiting.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39077
mono/metadata/object.c