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

Support unlinked classes in dynamic CDS archive

    XMLWordPrintable

Details

    • b07

    Description

      When dumping a dynamic CDS archive, we skip unlinked classes from custom loaders. The reason is:

      We cannot link these classes during dynamic dump time -- linking may require more classes to be loaded, which would cause user-supplied versions of ClassLoader::loadClass() to be called.

      Since dynamic dump happens at VM exit, executing such user-supplied code at this stage may cause unpredictable behavior.
      ==========

      Since JDK-8261090, we can store old classes in the static archive. These classes are unlinked, and will be linked/verified at runtime. We should extend this mechanism to support unlinked classes in the dynamic archive.

      Attachments

        Issue Links

          Activity

            People

              ccheung Calvin Cheung
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: