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

Try to link all classes during dynamic CDS dump

    Details

      Description

      Currently during dynamic archive dumping, we excluded all classes that are loaded but not yet linked.

      See http://hg.openjdk.java.net/jdk/jdk/file/23a06a5eeddd/src/hotspot/share/classfile/systemDictionaryShared.cpp#l1111

          // TODO -- rethink how this can be handled.
          // We should try to link ik, however, we can't do it here because
          // 1. We are at VM exit
          // 2. linking a class may cause other classes to be loaded, which means
          // a custom ClassLoader.loadClass() may be called, at a point where the
          // class loader doesn't expect it.

      We should investigate if it's possible to link the classes that are loaded by the built-in loaders.

        Attachments

          Activity

            People

            • Assignee:
              ccheung Calvin Cheung
              Reporter:
              iklam Ioi Lam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: