File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments