linamh/dev-lang/mono/files/mono-2.2-r121596-work-around-runtime-crash.patch

18 lines
767 B
Diff
Raw Normal View History

Index: mono/metadata/metadata.c
===================================================================
--- mono/metadata/metadata.c (Revision 121595)
+++ mono/metadata/metadata.c (Revision 121596)
@@ -2178,9 +2178,11 @@
MonoImage *image = data;
MonoMethodInflated *method = key;
+ // FIXME:
+ // https://bugzilla.novell.com/show_bug.cgi?id=458168
return method->declaring->klass->image == image ||
(method->context.class_inst && ginst_in_image (method->context.class_inst, image)) ||
- (method->context.method_inst && ginst_in_image (method->context.method_inst, image));
+ (method->context.method_inst && ginst_in_image (method->context.method_inst, image)) || signature_in_image (mono_method_signature ((MonoMethod*)method), image);
}
static gboolean