Skip to content

Commit

Permalink
Delete FEATURE_READYTORUN_COMPILER ifdef (#104727)
Browse files Browse the repository at this point in the history
#103361 resurrected this long-deleted ifdef (crossgen1-specific code).
  • Loading branch information
MichalStrehovsky committed Jul 12, 2024
1 parent 27e9b9d commit c09ec65
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/coreclr/vm/jitinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1904,22 +1904,11 @@ CEEInfo::getHeapClassSize(
TypeHandle VMClsHnd(clsHnd);
MethodTable* pMT = VMClsHnd.GetMethodTable();
_ASSERTE(pMT);
_ASSERTE(!pMT->IsValueType());
_ASSERTE(!pMT->HasComponentSize());

#ifdef FEATURE_READYTORUN_COMPILER
_ASSERTE(!IsReadyToRunCompilation() || pMT->IsInheritanceChainLayoutFixedInCurrentVersionBubble());
#endif

// Add OBJECT_SIZE to account for method table pointer.
//
if (pMT->IsValueType())
{
result = VMClsHnd.GetSize() + OBJECT_SIZE;
}
else
{
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;
}
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;

EE_TO_JIT_TRANSITION_LEAF();
return result;
Expand Down

0 comments on commit c09ec65

Please sign in to comment.