Skip to content

Commit

Permalink
[mono] Avoid putting static virtual methods into the IMT table. (#54981)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz authored Jul 1, 2021
1 parent 779b794 commit 27a1f0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mono/mono/metadata/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,11 @@ build_imt_slots (MonoClass *klass, MonoVTable *vt, gpointer* imt, GSList *extra_
continue;
}

if (m_method_is_static (method)) {
vt_slot ++;
continue;
}

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 27a1f0b

Please sign in to comment.