* marshal.c: make sure we don't store the signature from a dynamic
method into the runtime invoke cache (bug #327189).
svn path=/trunk/mono/; revision=87352
+Thu Oct 11 20:16:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+ * 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 <lupus@ximian.com>
* marshal.c: make sure the wrapper methods are properly initialized.
*/
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);
}
}