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

Improve CDS module graph support for command-line options

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • None
    • hotspot

      Currently, the CDS archived full module graph (FMG, implemented in JDK-8244778) is disabled when you specify command-line options that are related to the module system.

      We should improve CDS so that we can still take advantage of the FMG when certain command-line options are specified. Here are a few possibilities to consider:

      1. At runtime, --add-modules is specified.

      One common scenario is when -XX:+EnableJVMCI is specified, we automatically add the jdk.internal.vm.ci module.

      We should try to load the FMG, and then add the extra modules as specified.

      2. At runtime, --module is specified.

      This limits the number of modules visible in the boot layer. We should load the FMG from CDS, and then trim out the unwanted modules.

      3. At dump time, --module is specified

      This limits the number of modules visible in the boot layer. At runtime, we require that the same --module must be specified in order to load the FMG.

      4. At runtime, --module-path is specified.

      We should load the FMG from CDS, and then add the extra modules.

      5. At dump time, --module-path is specified

      We should dump the FMG with the extra modules. At run time, we require that --module-path is the same as (or a superset of) the dump time --module-path in order to load the FMG.

      This RFE can be implemented in several steps (to be tracked as subtasks of this RFE).

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated: