< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




4607   }
4608 
4609   // Apply CPU specific policy for the BiasedLocking
4610   if (UseBiasedLocking) {
4611     if (!VM_Version::use_biased_locking() &&
4612         !(FLAG_IS_CMDLINE(UseBiasedLocking))) {
4613       UseBiasedLocking = false;
4614     }
4615   }
4616 #ifdef COMPILER2
4617   if (!UseBiasedLocking || EmitSync != 0) {
4618     UseOptoBiasInlining = false;
4619   }
4620 #endif
4621 
4622   return JNI_OK;
4623 }
4624 
4625 jint Arguments::adjust_after_os() {
4626   if (UseNUMA) {
4627     if(!FLAG_IS_DEFAULT(AllocateHeapAt)) {
4628       FLAG_SET_ERGO(bool, UseNUMA, false);
4629     } else if (UseParallelGC || UseParallelOldGC) {
4630       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4631          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4632       }
4633     }
4634     // UseNUMAInterleaving is set to ON for all collectors and
4635     // platforms when UseNUMA is set to ON. NUMA-aware collectors
4636     // such as the parallel collector for Linux and Solaris will
4637     // interleave old gen and survivor spaces on top of NUMA
4638     // allocation policy for the eden space.
4639     // Non NUMA-aware collectors such as CMS, G1 and Serial-GC on
4640     // all platforms and ParallelGC on Windows will interleave all
4641     // of the heap spaces across NUMA nodes.
4642     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4643       FLAG_SET_ERGO(bool, UseNUMAInterleaving, true);
4644     }
4645   }
4646   return JNI_OK;
4647 }




4607   }
4608 
4609   // Apply CPU specific policy for the BiasedLocking
4610   if (UseBiasedLocking) {
4611     if (!VM_Version::use_biased_locking() &&
4612         !(FLAG_IS_CMDLINE(UseBiasedLocking))) {
4613       UseBiasedLocking = false;
4614     }
4615   }
4616 #ifdef COMPILER2
4617   if (!UseBiasedLocking || EmitSync != 0) {
4618     UseOptoBiasInlining = false;
4619   }
4620 #endif
4621 
4622   return JNI_OK;
4623 }
4624 
4625 jint Arguments::adjust_after_os() {
4626   if (UseNUMA) {
4627     if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
4628       FLAG_SET_ERGO(bool, UseNUMA, false);
4629     } else if (UseParallelGC || UseParallelOldGC) {
4630       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4631          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4632       }
4633     }
4634     // UseNUMAInterleaving is set to ON for all collectors and
4635     // platforms when UseNUMA is set to ON. NUMA-aware collectors
4636     // such as the parallel collector for Linux and Solaris will
4637     // interleave old gen and survivor spaces on top of NUMA
4638     // allocation policy for the eden space.
4639     // Non NUMA-aware collectors such as CMS, G1 and Serial-GC on
4640     // all platforms and ParallelGC on Windows will interleave all
4641     // of the heap spaces across NUMA nodes.
4642     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4643       FLAG_SET_ERGO(bool, UseNUMAInterleaving, true);
4644     }
4645   }
4646   return JNI_OK;
4647 }


< prev index next >