[aot] Avoid printing out AOT NOT FOUND messages for icall methods which have no body.
authorZoltan Varga <vargaz@gmail.com>
Thu, 25 May 2017 21:59:55 +0000 (17:59 -0400)
committerZoltan Varga <vargaz@gmail.com>
Thu, 25 May 2017 22:00:01 +0000 (18:00 -0400)
mono/mini/aot-runtime.c

index 782106c45e17b519200a104fc6a09695e0e22758..30ef9a64ad7bc9628a0e2a5a52c7306b469dd6d1 100644 (file)
@@ -3941,9 +3941,11 @@ load_method (MonoDomain *domain, MonoAotModule *amodule, MonoImage *image, MonoM
                                        if (!method)
                                                return NULL;
                                }
-                               full_name = mono_method_full_name (method, TRUE);
-                               mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_AOT, "AOT: NOT FOUND: %s.", full_name);
-                               g_free (full_name);
+                               if (!(method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL)) {
+                                       full_name = mono_method_full_name (method, TRUE);
+                                       mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_AOT, "AOT: NOT FOUND: %s.", full_name);
+                                       g_free (full_name);
+                               }
                        }
                        return NULL;
                }