[runtime] Call mono_class_setup_methods () before accessing klass->method.count....
authorZoltan Varga <vargaz@gmail.com>
Sat, 4 Jan 2014 23:50:49 +0000 (00:50 +0100)
committerZoltan Varga <vargaz@gmail.com>
Sat, 4 Jan 2014 23:50:59 +0000 (00:50 +0100)
mono/metadata/domain.c
mono/metadata/object.c

index 7f52929f50419c007e7417554fe1073ebdfb9c43..aca4ec8549b5e57dd5a3e3dcda958f0daec1c850 100644 (file)
@@ -42,7 +42,7 @@
 #include <metadata/profiler-private.h>
 #include <mono/metadata/coree.h>
 
-/* #define DEBUG_DOMAIN_UNLOAD */
+#define DEBUG_DOMAIN_UNLOAD 1
 
 /* we need to use both the Tls* functions and __thread because
  * some archs may generate faster jit code with one meachanism
index 2c6ea2b68429083a131526041831ea1292f7593b..3cc9c04a45f00f324fbe4392199e435045e3865f 100644 (file)
@@ -1311,6 +1311,7 @@ build_imt_slots (MonoClass *klass, MonoVTable *vt, MonoDomain *domain, gpointer*
                if (mono_class_has_variant_generic_params (iface))
                        has_variant_iface = TRUE;
 
+               mono_class_setup_methods (iface);
                vt_slot = interface_offset;
                for (method_slot_in_interface = 0; method_slot_in_interface < iface->method.count; method_slot_in_interface++) {
                        MonoMethod *method;