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