Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c09ec65

Browse files
Delete FEATURE_READYTORUN_COMPILER ifdef (#104727)
#103361 resurrected this long-deleted ifdef (crossgen1-specific code).
1 parent 27e9b9d commit c09ec65

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/coreclr/vm/jitinterface.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,22 +1904,11 @@ CEEInfo::getHeapClassSize(
19041904
TypeHandle VMClsHnd(clsHnd);
19051905
MethodTable* pMT = VMClsHnd.GetMethodTable();
19061906
_ASSERTE(pMT);
1907+
_ASSERTE(!pMT->IsValueType());
19071908
_ASSERTE(!pMT->HasComponentSize());
19081909

1909-
#ifdef FEATURE_READYTORUN_COMPILER
1910-
_ASSERTE(!IsReadyToRunCompilation() || pMT->IsInheritanceChainLayoutFixedInCurrentVersionBubble());
1911-
#endif
1912-
19131910
// Add OBJECT_SIZE to account for method table pointer.
1914-
//
1915-
if (pMT->IsValueType())
1916-
{
1917-
result = VMClsHnd.GetSize() + OBJECT_SIZE;
1918-
}
1919-
else
1920-
{
1921-
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;
1922-
}
1911+
result = pMT->GetNumInstanceFieldBytes() + OBJECT_SIZE;
19231912

19241913
EE_TO_JIT_TRANSITION_LEAF();
19251914
return result;

0 commit comments

Comments
 (0)