comparison src/share/vm/runtime/arguments.cpp @ 10319:91eba9f82325

8012371: Adjust Tiered compile threshold according to available space in code cache Summary: Added command line parameter to define a threshold at which C1 compilation threshold for is increased. Reviewed-by: kvn, iveresov
author anoll
date Thu, 16 May 2013 15:46:49 +0200
parents 2f9ac66165e6
children c07dd9be16e8
comparison
equal deleted inserted replaced
10298:7ec426e29e4c 10319:91eba9f82325
2627 option->optionString, InitialCodeCacheSize/K); 2627 option->optionString, InitialCodeCacheSize/K);
2628 describe_range_error(errcode); 2628 describe_range_error(errcode);
2629 return JNI_EINVAL; 2629 return JNI_EINVAL;
2630 } 2630 }
2631 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize); 2631 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize);
2632 //-XX:IncreaseFirstTierCompileThresholdAt=
2633 } else if (match_option(option, "-XX:IncreaseFirstTierCompileThresholdAt=", &tail)) {
2634 uintx uint_IncreaseFirstTierCompileThresholdAt = 0;
2635 if (!parse_uintx(tail, &uint_IncreaseFirstTierCompileThresholdAt, 0) || uint_IncreaseFirstTierCompileThresholdAt > 99) {
2636 jio_fprintf(defaultStream::error_stream(),
2637 "Invalid value for IncreaseFirstTierCompileThresholdAt: %s. Should be between 0 and 99.\n",
2638 option->optionString);
2639 return JNI_EINVAL;
2640 }
2641 FLAG_SET_CMDLINE(uintx, IncreaseFirstTierCompileThresholdAt, (uintx)uint_IncreaseFirstTierCompileThresholdAt);
2632 // -green 2642 // -green
2633 } else if (match_option(option, "-green", &tail)) { 2643 } else if (match_option(option, "-green", &tail)) {
2634 jio_fprintf(defaultStream::error_stream(), 2644 jio_fprintf(defaultStream::error_stream(),
2635 "Green threads support not available\n"); 2645 "Green threads support not available\n");
2636 return JNI_EINVAL; 2646 return JNI_EINVAL;