332 if (CICompilerCount < 2 && CompilationModeFlag::quick_internal()) {
333 warning("Increasing number of compiler threads for JVMCI compiler.");
334 FLAG_SET_ERGO(CICompilerCount, 2);
335 }
336 }
337 #else // TIERED
338 // Adjust the on stack replacement percentage to avoid early
339 // OSR compilations while JVMCI itself is warming up
340 if (FLAG_IS_DEFAULT(OnStackReplacePercentage)) {
341 FLAG_SET_DEFAULT(OnStackReplacePercentage, 933);
342 }
343 #endif // !TIERED
344 // JVMCI needs values not less than defaults
345 if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
346 FLAG_SET_DEFAULT(ReservedCodeCacheSize, MAX2(64*M, ReservedCodeCacheSize));
347 }
348 if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) {
349 FLAG_SET_DEFAULT(InitialCodeCacheSize, MAX2(16*M, InitialCodeCacheSize));
350 }
351 if (FLAG_IS_DEFAULT(MetaspaceSize)) {
352 FLAG_SET_DEFAULT(MetaspaceSize, MIN2(MAX2(12*M, MetaspaceSize), MaxMetaspaceSize));
353 }
354 if (FLAG_IS_DEFAULT(NewSizeThreadIncrease)) {
355 FLAG_SET_DEFAULT(NewSizeThreadIncrease, MAX2(4*K, NewSizeThreadIncrease));
356 }
357 } // !UseJVMCINativeLibrary
358 } // UseJVMCICompiler
359 }
360 #endif // INCLUDE_JVMCI
361
362 bool CompilerConfig::check_args_consistency(bool status) {
363 // Check lower bounds of the code cache
364 // Template Interpreter code is approximately 3X larger in debug builds.
365 uint min_code_cache_size = CodeCacheMinimumUseSpace DEBUG_ONLY(* 3);
366 if (ReservedCodeCacheSize < InitialCodeCacheSize) {
367 jio_fprintf(defaultStream::error_stream(),
368 "Invalid ReservedCodeCacheSize: %dK. Must be at least InitialCodeCacheSize=%dK.\n",
369 ReservedCodeCacheSize/K, InitialCodeCacheSize/K);
370 status = false;
371 } else if (ReservedCodeCacheSize < min_code_cache_size) {
372 jio_fprintf(defaultStream::error_stream(),
|
332 if (CICompilerCount < 2 && CompilationModeFlag::quick_internal()) {
333 warning("Increasing number of compiler threads for JVMCI compiler.");
334 FLAG_SET_ERGO(CICompilerCount, 2);
335 }
336 }
337 #else // TIERED
338 // Adjust the on stack replacement percentage to avoid early
339 // OSR compilations while JVMCI itself is warming up
340 if (FLAG_IS_DEFAULT(OnStackReplacePercentage)) {
341 FLAG_SET_DEFAULT(OnStackReplacePercentage, 933);
342 }
343 #endif // !TIERED
344 // JVMCI needs values not less than defaults
345 if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
346 FLAG_SET_DEFAULT(ReservedCodeCacheSize, MAX2(64*M, ReservedCodeCacheSize));
347 }
348 if (FLAG_IS_DEFAULT(InitialCodeCacheSize)) {
349 FLAG_SET_DEFAULT(InitialCodeCacheSize, MAX2(16*M, InitialCodeCacheSize));
350 }
351 if (FLAG_IS_DEFAULT(MetaspaceSize)) {
352 FLAG_SET_DEFAULT(MetaspaceSize, clamp(MetaspaceSize, 12*M, MaxMetaspaceSize));
353 }
354 if (FLAG_IS_DEFAULT(NewSizeThreadIncrease)) {
355 FLAG_SET_DEFAULT(NewSizeThreadIncrease, MAX2(4*K, NewSizeThreadIncrease));
356 }
357 } // !UseJVMCINativeLibrary
358 } // UseJVMCICompiler
359 }
360 #endif // INCLUDE_JVMCI
361
362 bool CompilerConfig::check_args_consistency(bool status) {
363 // Check lower bounds of the code cache
364 // Template Interpreter code is approximately 3X larger in debug builds.
365 uint min_code_cache_size = CodeCacheMinimumUseSpace DEBUG_ONLY(* 3);
366 if (ReservedCodeCacheSize < InitialCodeCacheSize) {
367 jio_fprintf(defaultStream::error_stream(),
368 "Invalid ReservedCodeCacheSize: %dK. Must be at least InitialCodeCacheSize=%dK.\n",
369 ReservedCodeCacheSize/K, InitialCodeCacheSize/K);
370 status = false;
371 } else if (ReservedCodeCacheSize < min_code_cache_size) {
372 jio_fprintf(defaultStream::error_stream(),
|