Backport of r124065.
* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.
svn path=/branches/mono-2-2/mono/; revision=124066
+2009-01-21 Zoltan Varga <vargaz@gmail.com>
+
+ Backport of r124065.
+
+ * class.c (mono_class_setup_vtable_general): In the generic instance
+ optimization, set method->slot for abstract virtual methods. Fixes part of
+ #467834.
+
2009-01-21 Mark Probst <mark.probst@gmail.com>
Backport of r124022.
mono_memory_barrier ();
class->vtable = tmp;
+ /* Have to set method->slot for abstract virtual methods */
+ if (class->methods && gklass->methods) {
+ for (i = 0; i < class->method.count; ++i)
+ if (class->methods [i]->slot == -1)
+ class->methods [i]->slot = gklass->methods [i]->slot;
+ }
+
return;
}
}