From 1112c8e3669ea9f72062ed5da371bf6bc2654b58 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Mon, 13 Mar 2017 20:44:06 +0900 Subject: [PATCH] Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is on (dotnet/coreclr#10136) Commit migrated from https://github.com/dotnet/coreclr/commit/4797035df287ee02ac46e9e2c93c2db5a62dbee7 --- src/coreclr/src/vm/i386/jitinterfacex86.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/src/vm/i386/jitinterfacex86.cpp b/src/coreclr/src/vm/i386/jitinterfacex86.cpp index f686e8f..c1769eb 100644 --- a/src/coreclr/src/vm/i386/jitinterfacex86.cpp +++ b/src/coreclr/src/vm/i386/jitinterfacex86.cpp @@ -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 -- 2.7.4