equal
deleted
inserted
replaced
209 if (NeverActAsServerClassMachine) { |
209 if (NeverActAsServerClassMachine) { |
210 set_client_compilation_mode(); |
210 set_client_compilation_mode(); |
211 } |
211 } |
212 } |
212 } |
213 |
213 |
214 #endif // TIERED |
|
215 |
214 |
216 void CompilerConfig::set_tiered_flags() { |
215 void CompilerConfig::set_tiered_flags() { |
217 // Increase the code cache size - tiered compiles a lot more. |
216 // Increase the code cache size - tiered compiles a lot more. |
218 if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) { |
217 if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) { |
219 FLAG_SET_ERGO(ReservedCodeCacheSize, |
218 FLAG_SET_ERGO(ReservedCodeCacheSize, |
289 } |
288 } |
290 } |
289 } |
291 #endif // INCLUDE_AOT |
290 #endif // INCLUDE_AOT |
292 } |
291 } |
293 } |
292 } |
|
293 |
|
294 #endif // TIERED |
294 |
295 |
295 #if INCLUDE_JVMCI |
296 #if INCLUDE_JVMCI |
296 void set_jvmci_specific_flags() { |
297 void set_jvmci_specific_flags() { |
297 if (UseJVMCICompiler) { |
298 if (UseJVMCICompiler) { |
298 Compilation_mode = CompMode_server; |
299 Compilation_mode = CompMode_server; |
472 |
473 |
473 // Do JVMCI specific settings |
474 // Do JVMCI specific settings |
474 set_jvmci_specific_flags(); |
475 set_jvmci_specific_flags(); |
475 #endif |
476 #endif |
476 |
477 |
|
478 #ifdef TIERED |
477 if (TieredCompilation) { |
479 if (TieredCompilation) { |
478 set_tiered_flags(); |
480 set_tiered_flags(); |
479 } else { |
481 } else |
|
482 #endif |
|
483 { |
480 // Scale CompileThreshold |
484 // Scale CompileThreshold |
481 // CompileThresholdScaling == 0.0 is equivalent to -Xint and leaves CompileThreshold unchanged. |
485 // CompileThresholdScaling == 0.0 is equivalent to -Xint and leaves CompileThreshold unchanged. |
482 if (!FLAG_IS_DEFAULT(CompileThresholdScaling) && CompileThresholdScaling > 0.0) { |
486 if (!FLAG_IS_DEFAULT(CompileThresholdScaling) && CompileThresholdScaling > 0.0) { |
483 FLAG_SET_ERGO(CompileThreshold, scaled_compile_threshold(CompileThreshold)); |
487 FLAG_SET_ERGO(CompileThreshold, scaled_compile_threshold(CompileThreshold)); |
484 } |
488 } |