Deprecate Xmaxjitcodesize

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 26
    • Component/s: hotspot
    • None
    • behavioral
    • minimal
    • Users of the -Xmaxjitcodesize alias will have to specify the -XX:ReservedCodeCacheSize flag instead
    • add/remove/modify command line option

      Summary

      The -Xmaxjitcodesize flag is long overdue for deprecation. It is obsolete on Solaris as far back as 2002, and right now works solely as an alias for -XX:ReservedCodeCacheSize. The flag should be deprecated for removal in JDK 26, obsoleted in JDK 27, and removed in JDK 28.

      Problem

      We marked -Xmaxjitcodesize obsolete in Solaris as far back as 2002 (JDK 1.4.0). However, at some point the flag was made an alias for -XX:ReservedCodeCacheSize, setting the reserved code cache size in bytes (i.e., the maximum size for the code cache). We currently do not use -Xmaxjitcodesize throughout the JDK codebase and it is long overdue for deprecation. We can remove it without loss of functionality.

      Solution

      Deprecate -Xmaxjitcodesize for removal in JDK 26, obsolete it in JDK 27, and remove it in JDK 28.

      Users of -Xmaxjitcodesize should instead use -XX:ReservedCodeCacheSize.

      Specification

      if (match_option(option, "-Xmaxjitcodesize", &tail)) {
              warning("Option -Xmaxjitcodesize was deprecated in JDK 26 and will likely be removed in a future release.");
      }
      

            Assignee:
            Anton Seoane Ampudia
            Reporter:
            David Holmes
            Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: