From: Jonghyun Park Date: Mon, 13 Mar 2017 11:44:06 +0000 (+0900) Subject: Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is... X-Git-Tag: submit/tizen/20210909.063632~11030^2~7761 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1112c8e3669ea9f72062ed5da371bf6bc2654b58;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is on (dotnet/coreclr#10136) Commit migrated from https://github.com/dotnet/coreclr/commit/4797035df287ee02ac46e9e2c93c2db5a62dbee7 --- 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