Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/hotspot/share/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2214,11 +2214,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 -Xmaxjitcodesize; support was removed in JDK 27");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other places use next to get VM version:

      char version[256];
      JDK_Version::jdk(17).to_string(version, sizeof(version));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change it to do it this way, too... hopefully it just lasts for a version as it should be completely removed in 28 😄

} else if (match_option(option, "-XX:ReservedCodeCacheSize=", &tail)) {
julong long_ReservedCodeCacheSize = 0;

ArgsRange errcode = parse_memory_size(tail, &long_ReservedCodeCacheSize, 1);
Expand Down