Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 20241:bcd72ab4d91f
8024366: Make UseNUMA enable UseNUMAInterleaving
Reviewed-by: mgerdin
Contributed-by: shrinivas.joshi@oracle.com
author | jmasa |
---|---|
date | Thu, 16 Jan 2014 13:25:25 -0800 |
parents | 99dbb9cd9521 |
children | dd219eaec9cc |
comparison
equal
deleted
inserted
replaced
20240:eee19efa6c0f | 20241:bcd72ab4d91f |
---|---|
3833 | 3833 |
3834 return JNI_OK; | 3834 return JNI_OK; |
3835 } | 3835 } |
3836 | 3836 |
3837 jint Arguments::adjust_after_os() { | 3837 jint Arguments::adjust_after_os() { |
3838 #if INCLUDE_ALL_GCS | 3838 if (UseNUMA) { |
3839 if (UseParallelGC || UseParallelOldGC) { | 3839 if (UseParallelGC || UseParallelOldGC) { |
3840 if (UseNUMA) { | |
3841 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) { | 3840 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) { |
3842 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M); | 3841 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M); |
3843 } | 3842 } |
3844 // For those collectors or operating systems (eg, Windows) that do | 3843 } |
3845 // not support full UseNUMA, we will map to UseNUMAInterleaving for now | 3844 // UseNUMAInterleaving is set to ON for all collectors and |
3846 UseNUMAInterleaving = true; | 3845 // platforms when UseNUMA is set to ON. NUMA-aware collectors |
3847 } | 3846 // such as the parallel collector for Linux and Solaris will |
3848 } | 3847 // interleave old gen and survivor spaces on top of NUMA |
3849 #endif // INCLUDE_ALL_GCS | 3848 // allocation policy for the eden space. |
3849 // Non NUMA-aware collectors such as CMS, G1 and Serial-GC on | |
3850 // all platforms and ParallelGC on Windows will interleave all | |
3851 // of the heap spaces across NUMA nodes. | |
3852 if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) { | |
3853 FLAG_SET_ERGO(bool, UseNUMAInterleaving, true); | |
3854 } | |
3855 } | |
3850 return JNI_OK; | 3856 return JNI_OK; |
3851 } | 3857 } |
3852 | 3858 |
3853 int Arguments::PropertyList_count(SystemProperty* pl) { | 3859 int Arguments::PropertyList_count(SystemProperty* pl) { |
3854 int count = 0; | 3860 int count = 0; |