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

ClassLoaderExt::append_boot_classpath should handle dynamic archive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b25

      https://github.com/openjdk/jdk/blob/0ee196bef199c3d32c1f88b26eb4333a7ea73c10/src/hotspot/share/classfile/classLoaderExt.cpp#L59-L65

      void ClassLoaderExt::append_boot_classpath(ClassPathEntry* new_entry) {
        if (UseSharedSpaces) {
          warning("Sharing is only supported for boot loader classes because bootstrap classpath has been appended");
          FileMapInfo::current_info()->set_has_platform_or_app_classes(false);
        }
        ClassLoader::add_to_boot_append_entries(new_entry);
      }

      This should be added:

      if (DynamicArchive::is_mapped()) {
        FileMapInfo::dynamic_info()->set_has_platform_or_app_classes(false);
      }

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

              Created:
              Updated:
              Resolved: