Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is...
authorJonghyun Park <parjong@gmail.com>
Mon, 13 Mar 2017 11:44:06 +0000 (20:44 +0900)
committerJan Kotas <jkotas@microsoft.com>
Mon, 13 Mar 2017 11:44:06 +0000 (04:44 -0700)
src/vm/i386/jitinterfacex86.cpp

index f686e8f..c1769eb 100644 (file)
@@ -970,8 +970,10 @@ void *JIT_TrialAlloc::GenAllocArray(Flags flags)
         // want to bias toward putting things in the large object heap
     unsigned maxElems =  0xffff - 256;
 
+#ifdef FEATURE_DOUBLE_ALIGNMENT_HINT
     if ((flags & ALIGN8) && g_pConfig->GetDoubleArrayToLargeObjectHeapThreshold() < maxElems)
         maxElems = g_pConfig->GetDoubleArrayToLargeObjectHeapThreshold();
+#endif // FEATURE_DOUBLE_ALIGNMENT_HINT
     if (flags & OBJ_ARRAY)
     {
         //Since we know that the array elements are sizeof(OBJECTREF), set maxElems exactly here (use the