[llvm] In default_mono_llvm_unhandled_exception call mono_invoke_unhandled_exception_...
authorAleksey Kliger <aleksey@xamarin.com>
Mon, 1 Aug 2016 14:37:38 +0000 (10:37 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Mon, 1 Aug 2016 14:37:38 +0000 (10:37 -0400)
instead of exiting directly.

mono/mini/mini-llvm.c

index e08765758f495716906462e84f10a42f9bbafc3b..61f3730f520383cefbc8fb9fc89b5d279f097cf4 100644 (file)
@@ -9034,8 +9034,8 @@ default_mono_llvm_unhandled_exception (void)
        MonoObject *target = mono_gchandle_get_target (jit_tls->thrown_exc);
 
        mono_unhandled_exception (target);
-       // AK: should we call mono_invoke_unhandled_exception_hook here?
-       exit (mono_environment_exitcode_get ());
+       mono_invoke_unhandled_exception_hook (target);
+       g_assert_not_reached ();
 }
 
 /*