* mini.c (mono_jit_free_method): Provide extra information for
this error. Currently this leaks, but will be turned into a
developer option in the future.
svn path=/trunk/mono/; revision=35332
+2004-10-26 Miguel de Icaza <miguel@ximian.com>
+
+ * mini.c (mono_jit_free_method): Provide extra information for
+ this error. Currently this leaks, but will be turned into a
+ developer option in the future.
+
2004-10-26 Zoltan Varga <vargaz@freemail.hu>
* driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
EnterCriticalSection (&jit_mutex);
ji = g_hash_table_lookup (dynamic_code_hash, method);
LeaveCriticalSection (&jit_mutex);
- if (ji)
- mono_arch_invalidate_method (ji->ji, invalidated_delegate_trampoline, method->klass);
+ if (ji){
+ char *type = mono_type_full_name (&method->klass->byval_arg);
+ char *type_and_method = g_strdup_printf ("%s.%s", type, method->name);
+
+ g_free (type);
+ mono_arch_invalidate_method (ji->ji, invalidated_delegate_trampoline, type_and_method);
+ }
return;
}
#endif