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

Only verify non-system class when verification is enabled during CDS dump time

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • tbd
    • hotspot
    • None
    • minimal
    • Hide
      This proposal reverts JDK-8198849 and re-installs the prior JVM behavior, which honors user's choice and only verifies non-system classes when verification is not disabled from command-line options.

      Before the proposed change, the VM produces following message if -Xverify:none is specified:

      "All non-system classes will be verified (-Xverify:remote) during CDS dump time."

      Users have to change the command-line option explicitly for archiving dumping purpose. With the proposed change, user no longer need to do that. It improves CDS usages without introducing compatibility risk or security issue.
      Show
      This proposal reverts JDK-8198849 and re-installs the prior JVM behavior, which honors user's choice and only verifies non-system classes when verification is not disabled from command-line options. Before the proposed change, the VM produces following message if -Xverify:none is specified: "All non-system classes will be verified (-Xverify:remote) during CDS dump time." Users have to change the command-line option explicitly for archiving dumping purpose. With the proposed change, user no longer need to do that. It improves CDS usages without introducing compatibility risk or security issue.
    • Implementation

      Summary

      Only verify non-system class when verification is enabled during CDS dump time.

      Problem

      Solution

      Specification

      If the user specifies -Xverify:none during CDS dump time, the JVM honors user choice and does not force verification for application classes.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: