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

Archive packages from java.base and the unnamed modules into CDS

XMLWordPrintable

      During early VM bootstrap, we create a ModuleEntry for java.base, plus 3 ModuleEntry's for the unnamed modules for the 3 loaders (boot/platform/app).

      With the default CDS image, we then create 167 PackageEntry's for the java.base module.

      With AppCDS, possibly many more packages will be created in the unnamed module of the app loader.

      We should try to archive all the PackageEntry for the java.base module and the 3 main unnamed modules. That way, shared classes of these modules can have a pre-initialized InstanceKlass::_package_entry field, so we can avoid the hashtable lookup at run time. We also save the time for dynamically allocating the PackageEntry's.

            minqi Yumin Qi
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: