projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b96127
)
Use GetDoubleArrayToLargeObjectHeapThreshold when FEATURE_DOUBLE_ALIGNMENT_HINT is...
author
Jonghyun Park
<parjong@gmail.com>
Mon, 13 Mar 2017 11:44:06 +0000
(20:44 +0900)
committer
Jan Kotas
<jkotas@microsoft.com>
Mon, 13 Mar 2017 11:44:06 +0000
(
04:44
-0700)
src/vm/i386/jitinterfacex86.cpp
patch
|
blob
|
history
diff --git
a/src/vm/i386/jitinterfacex86.cpp
b/src/vm/i386/jitinterfacex86.cpp
index
f686e8f
..
c1769eb
100644
(file)
--- a/
src/vm/i386/jitinterfacex86.cpp
+++ b/
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