X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fexceptions-s390x.c;h=17bb8b044d0ea92945ed50c96f4d9c0cf3dfeedc;hb=073752949f4e7846f3a9de365660077d44e22082;hp=c46265b7fe45818adcf2a739abf8958b35d5ea70;hpb=0aedc3f6fb2194817c766659c50a7e7f4786672e;p=mono.git diff --git a/mono/mini/exceptions-s390x.c b/mono/mini/exceptions-s390x.c index c46265b7fe4..17bb8b044d0 100644 --- a/mono/mini/exceptions-s390x.c +++ b/mono/mini/exceptions-s390x.c @@ -213,7 +213,7 @@ mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot) g_assert ((code - start) < SZ_THROW); if (info) - *info = mono_tramp_info_create (g_strdup_printf("call_filter"), + *info = mono_tramp_info_create ("call_filter", start, code - start, ji, unwind_ops); @@ -237,11 +237,7 @@ throw_exception (MonoObject *exc, unsigned long ip, unsigned long sp, { MonoContext ctx; int iReg; - static void (*restore_context) (MonoContext *); - if (!restore_context) - restore_context = mono_get_restore_context(); - memset(&ctx, 0, sizeof(ctx)); setup_context(&ctx); @@ -267,7 +263,7 @@ throw_exception (MonoObject *exc, unsigned long ip, unsigned long sp, } // mono_arch_handle_exception (&ctx, exc, FALSE); mono_handle_exception (&ctx, exc); - restore_context(&ctx); + mono_restore_context(&ctx); g_assert_not_reached (); } @@ -364,9 +360,9 @@ mono_arch_get_throw_exception_generic (int size, MonoTrampInfo **info, g_assert ((code - start) < size); if (info) - *info = mono_tramp_info_create (g_strdup_printf(corlib ? "throw_corlib_exception" + *info = mono_tramp_info_create (corlib ? "throw_corlib_exception" : (rethrow ? "rethrow_exception" - : "throw_exception")), + : "throw_exception"), start, code - start, ji, unwind_ops); return start;