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

Optimize package handling for archived classes

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      InstanceKlass::set_package():

      http://hg.openjdk.java.net/jdk/jdk/file/0edc7fd0d7a3/src/hotspot/share/oops/instanceKlass.cpp#l2700

      No need to check prohibited packages for shared classes (we don't archive prohibited classes).

      ====
      SystemDictionary::load_shared_class()

      http://hg.openjdk.java.net/jdk/jdk/file/0edc7fd0d7a3/src/hotspot/share/classfile/systemDictionary.cpp#l1342

        if (class_loader.is_null()) {
          int path_index = ik->shared_classpath_index();
          ResourceMark rm;
          ClassLoader::add_package(ik->name()->as_C_string(), path_index, THREAD);
        }

      This call really only does this:

         pkg_entry->set_classpath_index(ik->classpath_index);

      so we can move this code into InstanceKlass::set_package().

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: