ClassLoader::initialize_module_loader_map should only be called when dumping CDS archive

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b120

      ClassLoader::initialize_module_loader_map reads "jdk/internal/vm/cds/resources/ModuleLoaderMap.dat" resource file to determine the defining loader of a module during CDS dump time.

      Dumping AppCDS archive can't invoke any java code but instead loads classes listed in a classlist by the bootstrap class loader. Then store the loader type in the archive.

      This ModuleLoaderMap.dat is just a temporary workaround and should be re-examined and avoid calling it in normal application runs.

      The code is currently #ifdef INCLUDE_CDS

            Assignee:
            Jiangli Zhou
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: