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

Expire/remove the UseAppCDS option in JDK 12

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      The UseAppCDS option must be removed from the command line for starting a Java program.
    • Interface Kind:
      add/remove/modify command line option

      Description

      Summary

      The UseAppCDS option was made obsolete in JDK 11 via JDK-8193213. The option will be expired in JDK 12.

      Problem

      The change for JDK-8204563 resulting in a custom warning message if the UseAppCDS option is specified in JDK 11.

      Java HotSpot(TM) 64-Bit Server VM warning: Ignoring obsolete option UseAppCDS; AppCDS is automatically enabled

      We should have the same warning message for an option which is set to expire in JDK 12.

      Solution

      Revert the change for JDK-8204563 and remove the UseAppCDS entry in arguments.cpp.

      Specification

      Unrecognized VM option 'UseAppCDS'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ccheung Calvin Cheung
              Reporter:
              ccheung Calvin Cheung
              Reviewed By:
              Ioi Lam, Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: