From: Zoltan Varga Date: Fri, 24 Feb 2017 17:16:15 +0000 (-0500) Subject: [runtime] Speed up mono_icall_start()/mono_icall_end() a bit by using inline versions... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=655ac68c8a2b330d96c20802642e264cbffd93b5;p=mono.git [runtime] Speed up mono_icall_start()/mono_icall_end() a bit by using inline versions of the MonoError functions. (#4424) --- diff --git a/mono/metadata/marshal.c b/mono/metadata/marshal.c index 733aa035ebf..1545e1e19ba 100644 --- a/mono/metadata/marshal.c +++ b/mono/metadata/marshal.c @@ -12120,5 +12120,6 @@ static void mono_icall_end (MonoThreadInfo *info, HandleStackMark *stackmark, MonoError *error) { mono_stack_mark_pop (info, stackmark); - mono_error_set_pending_exception (error); + if (G_UNLIKELY (!is_ok (error))) + mono_error_set_pending_exception (error); }