2665 julong long_CodeCacheExpansionSize = 0; 2666 ArgsRange errcode = parse_memory_size(tail, &long_CodeCacheExpansionSize, os::vm_page_size()); 2667 if (errcode != arg_in_range) { 2668 jio_fprintf(defaultStream::error_stream(), 2669 "Invalid argument: %s. Must be at least %luK.\n", option->optionString, 2670 os::vm_page_size()/K); 2671 return JNI_EINVAL; 2672 } 2673 FLAG_SET_CMDLINE(uintx, CodeCacheExpansionSize, (uintx)long_CodeCacheExpansionSize); 2674 } else if (match_option(option, "-Xmaxjitcodesize", &tail) || 2675 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) { 2676 julong long_ReservedCodeCacheSize = 0; 2677 2678 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1); 2679 if (errcode != arg_in_range) { 2680 jio_fprintf(defaultStream::error_stream(), 2681 "Invalid maximum code cache size: %s.\n", option->optionString); 2682 return JNI_EINVAL; 2683 } 2684 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize); 2685 //-XX:IncreaseFirstTierCompileThresholdAt= 2686 } else if (match_option(option, "-XX:IncreaseFirstTierCompileThresholdAt=", &tail)) { 2687 uintx uint_IncreaseFirstTierCompileThresholdAt = 0; 2688 if (!parse_uintx(tail, &uint_IncreaseFirstTierCompileThresholdAt, 0) || uint_IncreaseFirstTierCompileThresholdAt > 99) { 2689 jio_fprintf(defaultStream::error_stream(), 2690 "Invalid value for IncreaseFirstTierCompileThresholdAt: %s. Should be between 0 and 99.\n", 2691 option->optionString); 2692 return JNI_EINVAL; 2693 } 2694 FLAG_SET_CMDLINE(uintx, IncreaseFirstTierCompileThresholdAt, (uintx)uint_IncreaseFirstTierCompileThresholdAt); 2695 // -green 2696 } else if (match_option(option, "-green", &tail)) { 2697 jio_fprintf(defaultStream::error_stream(), 2698 "Green threads support not available\n"); 2699 return JNI_EINVAL; 2700 // -native 2701 } else if (match_option(option, "-native", &tail)) { 2702 // HotSpot always uses native threads, ignore silently for compatibility 2703 // -Xsqnopause 2704 } else if (match_option(option, "-Xsqnopause", &tail)) { | 2665 julong long_CodeCacheExpansionSize = 0; 2666 ArgsRange errcode = parse_memory_size(tail, &long_CodeCacheExpansionSize, os::vm_page_size()); 2667 if (errcode != arg_in_range) { 2668 jio_fprintf(defaultStream::error_stream(), 2669 "Invalid argument: %s. Must be at least %luK.\n", option->optionString, 2670 os::vm_page_size()/K); 2671 return JNI_EINVAL; 2672 } 2673 FLAG_SET_CMDLINE(uintx, CodeCacheExpansionSize, (uintx)long_CodeCacheExpansionSize); 2674 } else if (match_option(option, "-Xmaxjitcodesize", &tail) || 2675 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) { 2676 julong long_ReservedCodeCacheSize = 0; 2677 2678 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1); 2679 if (errcode != arg_in_range) { 2680 jio_fprintf(defaultStream::error_stream(), 2681 "Invalid maximum code cache size: %s.\n", option->optionString); 2682 return JNI_EINVAL; 2683 } 2684 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize); 2685 #ifndef PRODUCT 2686 } else if(match_option(option, "-XX:PrintCodeCacheDetails=", &tail)) { 2687 CodeCache::init_printing_options(tail); 2688 #endif 2689 //-XX:IncreaseFirstTierCompileThresholdAt= 2690 } else if (match_option(option, "-XX:IncreaseFirstTierCompileThresholdAt=", &tail)) { 2691 uintx uint_IncreaseFirstTierCompileThresholdAt = 0; 2692 if (!parse_uintx(tail, &uint_IncreaseFirstTierCompileThresholdAt, 0) || uint_IncreaseFirstTierCompileThresholdAt > 99) { 2693 jio_fprintf(defaultStream::error_stream(), 2694 "Invalid value for IncreaseFirstTierCompileThresholdAt: %s. Should be between 0 and 99.\n", 2695 option->optionString); 2696 return JNI_EINVAL; 2697 } 2698 FLAG_SET_CMDLINE(uintx, IncreaseFirstTierCompileThresholdAt, (uintx)uint_IncreaseFirstTierCompileThresholdAt); 2699 // -green 2700 } else if (match_option(option, "-green", &tail)) { 2701 jio_fprintf(defaultStream::error_stream(), 2702 "Green threads support not available\n"); 2703 return JNI_EINVAL; 2704 // -native 2705 } else if (match_option(option, "-native", &tail)) { 2706 // HotSpot always uses native threads, ignore silently for compatibility 2707 // -Xsqnopause 2708 } else if (match_option(option, "-Xsqnopause", &tail)) { |