8384104: Obsolete Xmaxjitcodesize

Reviewed-by: kvn, dholmes
This commit is contained in:
Anton Seoane Ampudia 2026-06-01 07:20:32 +00:00
parent 9536b7f6c0
commit 3760d75e66

View File

@ -2195,11 +2195,9 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, JVMFlagOrigin
if (FLAG_SET_CMDLINE(ThreadStackSize, value) != JVMFlag::SUCCESS) {
return JNI_EINVAL;
}
} else if (match_option(option, "-Xmaxjitcodesize", &tail) ||
match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
if (match_option(option, "-Xmaxjitcodesize", &tail)) {
warning("Option -Xmaxjitcodesize was deprecated in JDK 26 and will likely be removed in a future release.");
}
} else if (match_option(option, "-Xmaxjitcodesize", &tail)) {
warning("Ignoring option %s; support was removed in JDK 27", option->optionString);
} else if (match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
julong long_ReservedCodeCacheSize = 0;
ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1);