src/hotspot/share/compiler/compilerDefinitions.cpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff src/hotspot/share/compiler

src/hotspot/share/compiler/compilerDefinitions.cpp

Print this page




 248 #if INCLUDE_JVMCI
 249 void set_jvmci_specific_flags() {
 250   if (UseJVMCICompiler) {
 251     Compilation_mode = CompMode_server;
 252 
 253     if (FLAG_IS_DEFAULT(TypeProfileWidth)) {
 254       FLAG_SET_DEFAULT(TypeProfileWidth, 8);
 255     }
 256     if (TieredStopAtLevel != CompLevel_full_optimization) {
 257       // Currently JVMCI compiler can only work at the full optimization level
 258       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
 259       FLAG_SET_ERGO(intx, TieredStopAtLevel, CompLevel_full_optimization);
 260     }
 261     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
 262       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
 263     }
 264 
 265     if (UseJVMCINativeLibrary) {
 266       // SVM compiled code requires more stack space
 267       if (FLAG_IS_DEFAULT(CompilerThreadStackSize)) {
 268         FLAG_SET_DEFAULT(CompilerThreadStackSize, 2*M);
 269       }
 270     } else {
 271       // Adjust the on stack replacement percentage to avoid early
 272       // OSR compilations while JVMCI itself is warming up
 273       if (FLAG_IS_DEFAULT(OnStackReplacePercentage)) {
 274         FLAG_SET_DEFAULT(OnStackReplacePercentage, 933);
 275       }
 276       // JVMCI needs values not less than defaults
 277       if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
 278         FLAG_SET_DEFAULT(ReservedCodeCacheSize, MAX2(64*M, ReservedCodeCacheSize));
 279       }
 280       if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) {
 281         FLAG_SET_DEFAULT(InitialCodeCacheSize, MAX2(16*M, InitialCodeCacheSize));
 282       }
 283       if (FLAG_IS_DEFAULT(MetaspaceSize)) {
 284         FLAG_SET_DEFAULT(MetaspaceSize, MIN2(MAX2(12*M, MetaspaceSize), MaxMetaspaceSize));
 285       }
 286       if (FLAG_IS_DEFAULT(NewSizeThreadIncrease)) {
 287         FLAG_SET_DEFAULT(NewSizeThreadIncrease, MAX2(4*K, NewSizeThreadIncrease));
 288       }




 248 #if INCLUDE_JVMCI
 249 void set_jvmci_specific_flags() {
 250   if (UseJVMCICompiler) {
 251     Compilation_mode = CompMode_server;
 252 
 253     if (FLAG_IS_DEFAULT(TypeProfileWidth)) {
 254       FLAG_SET_DEFAULT(TypeProfileWidth, 8);
 255     }
 256     if (TieredStopAtLevel != CompLevel_full_optimization) {
 257       // Currently JVMCI compiler can only work at the full optimization level
 258       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
 259       FLAG_SET_ERGO(intx, TieredStopAtLevel, CompLevel_full_optimization);
 260     }
 261     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
 262       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
 263     }
 264 
 265     if (UseJVMCINativeLibrary) {
 266       // SVM compiled code requires more stack space
 267       if (FLAG_IS_DEFAULT(CompilerThreadStackSize)) {
 268         FLAG_SET_DEFAULT(CompilerThreadStackSize, 2*K);
 269       }
 270     } else {
 271       // Adjust the on stack replacement percentage to avoid early
 272       // OSR compilations while JVMCI itself is warming up
 273       if (FLAG_IS_DEFAULT(OnStackReplacePercentage)) {
 274         FLAG_SET_DEFAULT(OnStackReplacePercentage, 933);
 275       }
 276       // JVMCI needs values not less than defaults
 277       if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
 278         FLAG_SET_DEFAULT(ReservedCodeCacheSize, MAX2(64*M, ReservedCodeCacheSize));
 279       }
 280       if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) {
 281         FLAG_SET_DEFAULT(InitialCodeCacheSize, MAX2(16*M, InitialCodeCacheSize));
 282       }
 283       if (FLAG_IS_DEFAULT(MetaspaceSize)) {
 284         FLAG_SET_DEFAULT(MetaspaceSize, MIN2(MAX2(12*M, MetaspaceSize), MaxMetaspaceSize));
 285       }
 286       if (FLAG_IS_DEFAULT(NewSizeThreadIncrease)) {
 287         FLAG_SET_DEFAULT(NewSizeThreadIncrease, MAX2(4*K, NewSizeThreadIncrease));
 288       }


src/hotspot/share/compiler/compilerDefinitions.cpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File