Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 14346:8a3eb09ed131
8024366: Make UseNUMA enable UseNUMAInterleaving
Reviewed-by: brutisso, tschatzl
Contributed-by: shrinivas.joshi@oracle.com
author | jmasa |
---|---|
date | Thu, 16 Jan 2014 13:25:25 -0800 |
parents | 44315152d434 |
children | 47ee29d0e3f7 |
comparison
equal
deleted
inserted
replaced
14345:2edf6f3e191d | 14346:8a3eb09ed131 |
---|---|
3821 | 3821 |
3822 return JNI_OK; | 3822 return JNI_OK; |
3823 } | 3823 } |
3824 | 3824 |
3825 jint Arguments::adjust_after_os() { | 3825 jint Arguments::adjust_after_os() { |
3826 #if INCLUDE_ALL_GCS | 3826 if (UseNUMA) { |
3827 if (UseParallelGC || UseParallelOldGC) { | 3827 if (UseParallelGC || UseParallelOldGC) { |
3828 if (UseNUMA) { | |
3829 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) { | 3828 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) { |
3830 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M); | 3829 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M); |
3831 } | 3830 } |
3832 // For those collectors or operating systems (eg, Windows) that do | 3831 } |
3833 // not support full UseNUMA, we will map to UseNUMAInterleaving for now | 3832 // UseNUMAInterleaving is set to ON for all collectors and |
3834 UseNUMAInterleaving = true; | 3833 // platforms when UseNUMA is set to ON. NUMA-aware collectors |
3835 } | 3834 // such as the parallel collector for Linux and Solaris will |
3836 } | 3835 // interleave old gen and survivor spaces on top of NUMA |
3837 #endif // INCLUDE_ALL_GCS | 3836 // allocation policy for the eden space. |
3837 // Non NUMA-aware collectors such as CMS, G1 and Serial-GC on | |
3838 // all platforms and ParallelGC on Windows will interleave all | |
3839 // of the heap spaces across NUMA nodes. | |
3840 if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) { | |
3841 FLAG_SET_ERGO(bool, UseNUMAInterleaving, true); | |
3842 } | |
3843 } | |
3838 return JNI_OK; | 3844 return JNI_OK; |
3839 } | 3845 } |
3840 | 3846 |
3841 int Arguments::PropertyList_count(SystemProperty* pl) { | 3847 int Arguments::PropertyList_count(SystemProperty* pl) { |
3842 int count = 0; | 3848 int count = 0; |