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

Deprecate the -XX:FailOverToOldVerifier option

    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
      This change would require users that explicitly enable FailOverToOldVerifier to eventually remove the option. There would be no change in their program's behavior because enabled fail over is the default.

      Users that explicitly disable FailOverToOldVerifier would no longer be able to do so once the option is obsoleted. Classes with class file version 50 that previously failed to verify may suddenly pass verification. It is doubtful that there are many users that would be affected by this.
      Show
      This change would require users that explicitly enable FailOverToOldVerifier to eventually remove the option. There would be no change in their program's behavior because enabled fail over is the default. Users that explicitly disable FailOverToOldVerifier would no longer be able to do so once the option is obsoleted. Classes with class file version 50 that previously failed to verify may suddenly pass verification. It is doubtful that there are many users that would be affected by this.
    • Interface Kind:
      add/remove/modify command line option

      Description

      Summary

      Deprecate the -XX:FailOverToOldVerifier option. This option was added in JDK-6 to help with migration to the split verifier and its requirement for stackmaps. There is little need for this option anymore.

      Problem

      The FailOverToOldVerifier option only affects class file version 50 and allows those classes to get verified by the inference verifier if they fail verification with the split verifier. The current default is to allow the fail over. It is doubtful that any users explicitly request not to fail over. So, since this antiquated option no longer has a purpose, it should be deprecated and support for it removed.

      Solution

      Deprecate the option and continue to allow classes with class file version 50 to fail over to the inference verifier.

      Users will now get the following message when running: 'java -XX:+FailOverToOldVerifier ...'

      Java HotSpot(TM) 64-Bit Server VM warning: Option FailOverToOldVerifier was deprecated in version 13.0 and will likely be removed in a future release.

      Specification

      Deprecate the -XX:FailOverToOldVerifier option in JDK-13 and issue the above warning message when the option is used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
                Reviewed By:
                Karen Kinnear (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: