2004-10-26 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Tue, 26 Oct 2004 14:03:40 +0000 (14:03 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 26 Oct 2004 14:03:40 +0000 (14:03 -0000)
* 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

mono/mini/ChangeLog
mono/mini/mini.c

index d2bea5a9774b5daaa33cff33178edbb98895ca90..ab13b2adfe26a6917687e8b7ceec5ac0f4125662 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 7beccf5175f939bcb04ea49a7009b63ee0efa8f4..733b6a6c2f1e3ca436c5aa4be5e5919cee24b49b 100644 (file)
@@ -8053,8 +8053,13 @@ mono_jit_free_method (MonoMethod *method)
                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