Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8216361

Deprecate -XX:CompilationPolicyChoice

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Hide
      Removing the flag could hurt performance in some hypothetical application that explicitly uses it, but as it only affects a non-tiered C2-only compilation policy that has not been maintained since JDK 6 - and has been measured to be detrimental to performance in most cases - the risk appears very small.
      Show
      Removing the flag could hurt performance in some hypothetical application that explicitly uses it, but as it only affects a non-tiered C2-only compilation policy that has not been maintained since JDK 6 - and has been measured to be detrimental to performance in most cases - the risk appears very small.
    • Interface Kind:
      add/remove/modify command line option

      Description

      Summary

      Deprecate the -XX:CompilationPolicyChoice flag in JDK 13 since the only configurable alternative this provides has been found to be suboptimal and likely unused since JDK 6.

      Problem

      The flag only enables use of an untested, unmaintained compilation policy that was concluded to be detrimental to both startup and overall performance in JDK 6. Removing the flag allows us to remove this policy and simplify code.

      Solution

      Deprecate the flag in JDK 13 and then remove it in JDK 14.

      Specification

      The CompilationPolicyChoice flag will be marked as deprecated in JDK 13.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                redestad Claes Redestad
                Reporter:
                redestad Claes Redestad
                Reviewed By:
                Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: