[runtime] Don't call ExecutionEngine constructor in aot mode (#3185)
authorAlexander Kyte <alexmkyte@gmail.com>
Sat, 18 Jun 2016 17:12:15 +0000 (13:12 -0400)
committerZoltan Varga <vargaz@gmail.com>
Sat, 18 Jun 2016 17:12:15 +0000 (13:12 -0400)
mono/mini/mini.c

index 87d58290d812887d0936302d97e708acad7da54a..da9f3bb6a2061d3efafc67a3cee6a9e797ad10eb 100644 (file)
@@ -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;
        }