diff --git a/src/coreclr/vm/jitinterface.cpp b/src/coreclr/vm/jitinterface.cpp index 935f1ccde8202c..e1b5670819714b 100644 --- a/src/coreclr/vm/jitinterface.cpp +++ b/src/coreclr/vm/jitinterface.cpp @@ -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;