2500 // Internally track ThreadStackSize in units of 1024 bytes.
2501 FLAG_SET_CMDLINE(intx, ThreadStackSize,
2502 round_to((int)long_ThreadStackSize, K) / K);
2503 // -Xoss
2504 } else if (match_option(option, "-Xoss", &tail)) {
2505 // HotSpot does not have separate native and Java stacks, ignore silently for compatibility
2506 // -Xmaxjitcodesize
2507 } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
2508 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
2509 julong long_ReservedCodeCacheSize = 0;
2510 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize,
2511 (size_t)InitialCodeCacheSize);
2512 if (errcode != arg_in_range) {
2513 jio_fprintf(defaultStream::error_stream(),
2514 "Invalid maximum code cache size: %s. Should be greater than InitialCodeCacheSize=%dK\n",
2515 option->optionString, InitialCodeCacheSize/K);
2516 describe_range_error(errcode);
2517 return JNI_EINVAL;
2518 }
2519 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize);
2520 // -green
2521 } else if (match_option(option, "-green", &tail)) {
2522 jio_fprintf(defaultStream::error_stream(),
2523 "Green threads support not available\n");
2524 return JNI_EINVAL;
2525 // -native
2526 } else if (match_option(option, "-native", &tail)) {
2527 // HotSpot always uses native threads, ignore silently for compatibility
2528 // -Xsqnopause
2529 } else if (match_option(option, "-Xsqnopause", &tail)) {
2530 // EVM option, ignore silently for compatibility
2531 // -Xrs
2532 } else if (match_option(option, "-Xrs", &tail)) {
2533 // Classic/EVM option, new functionality
2534 FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true);
2535 } else if (match_option(option, "-Xusealtsigs", &tail)) {
2536 // change default internal VM signals used - lower case for back compat
2537 FLAG_SET_CMDLINE(bool, UseAltSigs, true);
2538 // -Xoptimize
2539 } else if (match_option(option, "-Xoptimize", &tail)) {
|
2500 // Internally track ThreadStackSize in units of 1024 bytes.
2501 FLAG_SET_CMDLINE(intx, ThreadStackSize,
2502 round_to((int)long_ThreadStackSize, K) / K);
2503 // -Xoss
2504 } else if (match_option(option, "-Xoss", &tail)) {
2505 // HotSpot does not have separate native and Java stacks, ignore silently for compatibility
2506 // -Xmaxjitcodesize
2507 } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
2508 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
2509 julong long_ReservedCodeCacheSize = 0;
2510 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize,
2511 (size_t)InitialCodeCacheSize);
2512 if (errcode != arg_in_range) {
2513 jio_fprintf(defaultStream::error_stream(),
2514 "Invalid maximum code cache size: %s. Should be greater than InitialCodeCacheSize=%dK\n",
2515 option->optionString, InitialCodeCacheSize/K);
2516 describe_range_error(errcode);
2517 return JNI_EINVAL;
2518 }
2519 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize);
2520 //-XX:IncreaseFirstTierCompileThresholdAt=
2521 } else if (match_option(option, "-XX:IncreaseFirstTierCompileThresholdAt=", &tail)) {
2522 uintx uint_IncreaseFirstTierCompileThresholdAt = 0;
2523 if (!parse_uintx(tail, &uint_IncreaseFirstTierCompileThresholdAt, 0) || uint_IncreaseFirstTierCompileThresholdAt > 99) {
2524 jio_fprintf(defaultStream::error_stream(),
2525 "Invalid value for IncreaseFirstTierCompileThresholdAt: %s. Should be between 0 and 99.\n",
2526 option->optionString);
2527 return JNI_EINVAL;
2528 }
2529 FLAG_SET_CMDLINE(uintx, IncreaseFirstTierCompileThresholdAt, (uintx)uint_IncreaseFirstTierCompileThresholdAt);
2530 // -green
2531 } else if (match_option(option, "-green", &tail)) {
2532 jio_fprintf(defaultStream::error_stream(),
2533 "Green threads support not available\n");
2534 return JNI_EINVAL;
2535 // -native
2536 } else if (match_option(option, "-native", &tail)) {
2537 // HotSpot always uses native threads, ignore silently for compatibility
2538 // -Xsqnopause
2539 } else if (match_option(option, "-Xsqnopause", &tail)) {
2540 // EVM option, ignore silently for compatibility
2541 // -Xrs
2542 } else if (match_option(option, "-Xrs", &tail)) {
2543 // Classic/EVM option, new functionality
2544 FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true);
2545 } else if (match_option(option, "-Xusealtsigs", &tail)) {
2546 // change default internal VM signals used - lower case for back compat
2547 FLAG_SET_CMDLINE(bool, UseAltSigs, true);
2548 // -Xoptimize
2549 } else if (match_option(option, "-Xoptimize", &tail)) {
|