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

Deprecate -XX:CompilationPolicyChoice

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 13
    • hotspot
    • None
    • behavioral
    • minimal
    • 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.
    • add/remove/modify command line option

      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.

            redestad Claes Redestad
            redestad Claes Redestad
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: