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(
1904
1904
TypeHandle VMClsHnd (clsHnd);
1905
1905
MethodTable* pMT = VMClsHnd.GetMethodTable ();
1906
1906
_ASSERTE (pMT);
1907
+ _ASSERTE (!pMT->IsValueType ());
1907
1908
_ASSERTE (!pMT->HasComponentSize ());
1908
1909
1909
- #ifdef FEATURE_READYTORUN_COMPILER
1910
- _ASSERTE (!IsReadyToRunCompilation () || pMT->IsInheritanceChainLayoutFixedInCurrentVersionBubble ());
1911
- #endif
1912
-
1913
1910
// 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;
1923
1912
1924
1913
EE_TO_JIT_TRANSITION_LEAF ();
1925
1914
return result;
You can’t perform that action at this time.
0 commit comments