Author: lupus
Date: 2007-10-11 14:04:02 -0400 (Thu, 11 Oct 2007)
New Revision: 87352

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/marshal.c
Log:


Thu Oct 11 20:16:58 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>

        * marshal.c: make sure we don't store the signature from a dynamic
        method into the runtime invoke cache (bug #327189).



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-10-11 17:56:20 UTC (rev 87351)
+++ trunk/mono/mono/metadata/ChangeLog  2007-10-11 18:04:02 UTC (rev 87352)
@@ -1,4 +1,9 @@
 
+Thu Oct 11 20:16:58 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
+
+       * marshal.c: make sure we don't store the signature from a dynamic
+       method into the runtime invoke cache (bug #327189).
+
 Thu Oct 11 18:22:31 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
 
        * marshal.c: make sure the wrapper methods are properly initialized.

Modified: trunk/mono/mono/metadata/marshal.c
===================================================================
--- trunk/mono/mono/metadata/marshal.c  2007-10-11 17:56:20 UTC (rev 87351)
+++ trunk/mono/mono/metadata/marshal.c  2007-10-11 18:04:02 UTC (rev 87352)
@@ -4884,7 +4884,10 @@
                         */
                        callsig = signature_dup_add_this (mono_method_signature 
(method), method->klass);
                } else {
-                       callsig = mono_method_signature (method);
+                       if (method->dynamic)
+                               callsig = signature_dup (method->klass->image, 
mono_method_signature (method));
+                       else
+                               callsig = mono_method_signature (method);
                }
        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to