< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




4125       LogVMOutput = true;
4126     }
4127   }
4128 #endif // PRODUCT
4129 
4130   if (PrintCommandLineFlags) {
4131     JVMFlag::printSetFlags(tty);
4132   }
4133 
4134   // Apply CPU specific policy for the BiasedLocking
4135   if (UseBiasedLocking) {
4136     if (!VM_Version::use_biased_locking() &&
4137         !(FLAG_IS_CMDLINE(UseBiasedLocking))) {
4138       UseBiasedLocking = false;
4139     }
4140   }
4141 #ifdef COMPILER2
4142   if (!UseBiasedLocking) {
4143     UseOptoBiasInlining = false;
4144   }
4145 #endif
















4146 
4147   return JNI_OK;
4148 }
4149 
4150 jint Arguments::adjust_after_os() {
4151   if (UseNUMA) {
4152     if (UseParallelGC) {
4153       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4154          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4155       }
4156     }
4157     // UseNUMAInterleaving is set to ON for all collectors and platforms when
4158     // UseNUMA is set to ON. NUMA-aware collectors will interleave old gen and
4159     // survivor spaces on top of NUMA allocation policy for the eden space.
4160     // Non NUMA-aware collectors will interleave all of the heap spaces across
4161     // NUMA nodes.
4162     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4163       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4164     }
4165   }




4125       LogVMOutput = true;
4126     }
4127   }
4128 #endif // PRODUCT
4129 
4130   if (PrintCommandLineFlags) {
4131     JVMFlag::printSetFlags(tty);
4132   }
4133 
4134   // Apply CPU specific policy for the BiasedLocking
4135   if (UseBiasedLocking) {
4136     if (!VM_Version::use_biased_locking() &&
4137         !(FLAG_IS_CMDLINE(UseBiasedLocking))) {
4138       UseBiasedLocking = false;
4139     }
4140   }
4141 #ifdef COMPILER2
4142   if (!UseBiasedLocking) {
4143     UseOptoBiasInlining = false;
4144   }
4145 
4146   if (!EnableVectorSupport) {
4147     if (!FLAG_IS_DEFAULT(EnableVectorReboxing) && EnableVectorReboxing) {
4148       warning("Disabling EnableVectorReboxing since EnableVectorSupport is turned off.");
4149     }
4150     FLAG_SET_DEFAULT(EnableVectorReboxing, false);
4151 
4152     if (!FLAG_IS_DEFAULT(EnableVectorAggressiveReboxing) && EnableVectorAggressiveReboxing) {
4153       if (!EnableVectorReboxing) {
4154         warning("Disabling EnableVectorAggressiveReboxing since EnableVectorReboxing is turned off.");
4155       } else {
4156         warning("Disabling EnableVectorAggressiveReboxing since EnableVectorSupport is turned off.");
4157       }
4158     }
4159     FLAG_SET_DEFAULT(EnableVectorAggressiveReboxing, false);
4160   }
4161 #endif // COMPILER2
4162 
4163   return JNI_OK;
4164 }
4165 
4166 jint Arguments::adjust_after_os() {
4167   if (UseNUMA) {
4168     if (UseParallelGC) {
4169       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4170          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4171       }
4172     }
4173     // UseNUMAInterleaving is set to ON for all collectors and platforms when
4174     // UseNUMA is set to ON. NUMA-aware collectors will interleave old gen and
4175     // survivor spaces on top of NUMA allocation policy for the eden space.
4176     // Non NUMA-aware collectors will interleave all of the heap spaces across
4177     // NUMA nodes.
4178     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4179       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4180     }
4181   }


< prev index next >