Skip to content

Commit

Permalink
[runtime] Avoid putting non-virtual and non-static DIM methods into v…
Browse files Browse the repository at this point in the history
…tables, roslyn generates these for private property accessors.

Fixes part of mono#13374.
  • Loading branch information
vargaz committed Mar 13, 2019
1 parent 8fed666 commit 74e7e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/object.c
Expand Up @@ -1548,7 +1548,7 @@ build_imt_slots (MonoClass *klass, MonoVTable *vt, MonoDomain *domain, gpointer*
continue;
}

if (!(method->flags & METHOD_ATTRIBUTE_STATIC)) {
if (method->flags & METHOD_ATTRIBUTE_VIRTUAL) {
add_imt_builder_entry (imt_builder, method, &imt_collisions_bitmap, vt_slot, slot_num);
vt_slot ++;
}
Expand Down

0 comments on commit 74e7e0f

Please sign in to comment.