ClassLoaderExt::append_boot_classpath should handle dynamic archive

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: 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);
      }

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: