JDK-8223077 : module path support for dynamic CDS archive
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-29
  • Updated: 2022-02-17
  • Resolved: 2022-02-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b10Fixed
Related Reports
Relates :  
Relates :  
Description
With the initial implementation of dynamic CDS archive (JDK-8207812), to dump a dynamic archive, the base archive must be created without a module path:

https://github.com/openjdk/jdk/blob/51b218842f001f1c4fd5ca7a02a2ba21e9e8a82c/src/hotspot/share/cds/filemap.cpp#L897

    if (DynamicDumpSharedSpaces) {
   ....
    if (header()->num_module_paths() > 0) {
      DynamicDumpSharedSpaces = false;
      warning(
        "Dynamic archiving is disabled because base layer archive has module path");
    }

It would be good to support module path in the base archive as well. Initially, we could consider the case where the module path for the base and dynamic archive are the same.
Comments
Changeset: c5ff6e45 Author: Calvin Cheung <ccheung@openjdk.org> Date: 2022-02-11 17:39:20 +0000 URL: https://git.openjdk.java.net/jdk/commit/c5ff6e45dee41b5703138d323a04c2c7973a08b9
11-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7437 Date: 2022-02-11 00:21:24 +0000
11-02-2022