Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/coreclr/vm/methodtable.inl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ FORCEINLINE PTR_EEClass MethodTable::GetClassWithPossibleAV()
{
// pointer to canonical MethodTable.
TADDR canonicalMethodTable = union_getPointer(addr);
return PTR_EEClass(PTR_MethodTable(canonicalMethodTable)->m_pCanonMT);
// a canonical method table always points at its EEClass, and m_pEEClass has no mask bit, so just return it
return PTR_MethodTable(canonicalMethodTable)->m_pEEClass;
}
}

Expand Down