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

--upgrade-module-path support for CDS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 12
    • 9
    • hotspot

      Currently, dumping a CDS archive with the --upgrade-module-path option results in the following error:

       ./bin/java --upgrade-module-path abc -Xshare:dump
      Error occurred during initialization of VM
      Cannot use the following option when dumping the shared archive: --upgrade-module-path

      This change is to allow the user to use the --upgrade-module-path option with CDS.

      High-level requirements:

      Dump time:
          - capture the path associated with --upgrade-module-path in the archive header
          - don't archive any class found in --upgrade-module-path
          - only support directory

      Run time:
          - compare the --upgrade-module-path with dump time.
             If they don't match, print an error and exit.
          - should be able to use the class found in --upgrade-module-path

            ccheung Calvin Cheung
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: