From d7eaad3f48cfe7729ef1cb98c13c84824111fb61 Mon Sep 17 00:00:00 2001 From: Alexander Kyte Date: Sat, 18 Jun 2016 13:12:15 -0400 Subject: [PATCH] [runtime] Don't call ExecutionEngine constructor in aot mode (#3185) --- mono/mini/mini.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mono/mini/mini.c b/mono/mini/mini.c index 87d58290d81..da9f3bb6a20 100644 --- a/mono/mini/mini.c +++ b/mono/mini/mini.c @@ -4192,13 +4192,9 @@ mono_jit_compile_method_inner (MonoMethod *method, MonoDomain *target_domain, in if (mono_aot_only) { char *fullname = mono_method_full_name (method, TRUE); - char *msg = g_strdup_printf ("Attempting to JIT compile method '%s' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.\n", fullname); - - ex = mono_get_exception_execution_engine (msg); - mono_error_set_exception_instance (error, ex); + mono_error_set_execution_engine (error, "Attempting to JIT compile method '%s' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.\n", fullname); g_free (fullname); - g_free (msg); - + return NULL; } -- 2.25.1