During CrossGen allocate MethodDescChunk for every MethodDesc in MethodTableBuilder...
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Tue, 4 Sep 2018 23:22:39 +0000 (16:22 -0700)
committerEgor Chesakov <Egor.Chesakov@microsoft.com>
Wed, 5 Sep 2018 01:23:01 +0000 (18:23 -0700)
src/vm/methodtablebuilder.cpp

index 08474ad..f36591a 100644 (file)
@@ -6787,8 +6787,10 @@ VOID MethodTableBuilder::AllocAndInitMethodDescs()
             }
         }
 
+#ifndef CROSSGEN_COMPILE
         if (tokenRange != currentTokenRange ||
             sizeOfMethodDescs + size > MethodDescChunk::MaxSizeOfMethodDescs)
+#endif // CROSSGEN_COMPILE
         {
             if (sizeOfMethodDescs != 0)
             {