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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: