2377 if (errcode != arg_in_range) {
2378 jio_fprintf(defaultStream::error_stream(),
2379 "Invalid thread stack size: %s\n", option->optionString);
2380 describe_range_error(errcode);
2381 return JNI_EINVAL;
2382 }
2383 // Internally track ThreadStackSize in units of 1024 bytes.
2384 FLAG_SET_CMDLINE(intx, ThreadStackSize,
2385 round_to((int)long_ThreadStackSize, K) / K);
2386 // -Xoss
2387 } else if (match_option(option, "-Xoss", &tail)) {
2388 // HotSpot does not have separate native and Java stacks, ignore silently for compatibility
2389 // -Xmaxjitcodesize
2390 } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
2391 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
2392 julong long_ReservedCodeCacheSize = 0;
2393 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize,
2394 (size_t)InitialCodeCacheSize);
2395 if (errcode != arg_in_range) {
2396 jio_fprintf(defaultStream::error_stream(),
2397 "Invalid maximum code cache size: %s. Should be greater than InitialCodeCacheSize=%dK\n",
2398 option->optionString, InitialCodeCacheSize/K);
2399 describe_range_error(errcode);
2400 return JNI_EINVAL;
2401 }
2402 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize);
2403 // -green
2404 } else if (match_option(option, "-green", &tail)) {
2405 jio_fprintf(defaultStream::error_stream(),
2406 "Green threads support not available\n");
2407 return JNI_EINVAL;
2408 // -native
2409 } else if (match_option(option, "-native", &tail)) {
2410 // HotSpot always uses native threads, ignore silently for compatibility
2411 // -Xsqnopause
2412 } else if (match_option(option, "-Xsqnopause", &tail)) {
2413 // EVM option, ignore silently for compatibility
2414 // -Xrs
2415 } else if (match_option(option, "-Xrs", &tail)) {
2416 // Classic/EVM option, new functionality
2417 FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true);
|
2377 if (errcode != arg_in_range) {
2378 jio_fprintf(defaultStream::error_stream(),
2379 "Invalid thread stack size: %s\n", option->optionString);
2380 describe_range_error(errcode);
2381 return JNI_EINVAL;
2382 }
2383 // Internally track ThreadStackSize in units of 1024 bytes.
2384 FLAG_SET_CMDLINE(intx, ThreadStackSize,
2385 round_to((int)long_ThreadStackSize, K) / K);
2386 // -Xoss
2387 } else if (match_option(option, "-Xoss", &tail)) {
2388 // HotSpot does not have separate native and Java stacks, ignore silently for compatibility
2389 // -Xmaxjitcodesize
2390 } else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
2391 match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
2392 julong long_ReservedCodeCacheSize = 0;
2393 ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize,
2394 (size_t)InitialCodeCacheSize);
2395 if (errcode != arg_in_range) {
2396 jio_fprintf(defaultStream::error_stream(),
2397 "Invalid maximum code cache size: %s. Should be greater than or equal to InitialCodeCacheSize=%dK\n",
2398 option->optionString, InitialCodeCacheSize/K);
2399 describe_range_error(errcode);
2400 return JNI_EINVAL;
2401 }
2402 FLAG_SET_CMDLINE(uintx, ReservedCodeCacheSize, (uintx)long_ReservedCodeCacheSize);
2403 // -green
2404 } else if (match_option(option, "-green", &tail)) {
2405 jio_fprintf(defaultStream::error_stream(),
2406 "Green threads support not available\n");
2407 return JNI_EINVAL;
2408 // -native
2409 } else if (match_option(option, "-native", &tail)) {
2410 // HotSpot always uses native threads, ignore silently for compatibility
2411 // -Xsqnopause
2412 } else if (match_option(option, "-Xsqnopause", &tail)) {
2413 // EVM option, ignore silently for compatibility
2414 // -Xrs
2415 } else if (match_option(option, "-Xrs", &tail)) {
2416 // Classic/EVM option, new functionality
2417 FLAG_SET_CMDLINE(bool, ReduceSignalUsage, true);
|