Currently, the --module-path option is being ignored during CDS dumping.
./bin/java -Xshare:dump --module-path mlib -Xlog:cds=info
narrow_klass_base = 0x0000000800000000, narrow_klass_shift = 3
Allocated temporary class space: 1073741824 bytes at 0x00000008c0000000
Allocated shared space: 3221225472 bytes at 0x0000000800000000
[0.048s][info][cds] Info: the --module-path option is ignored when dumping the shared archive
This enhancement is for supporting the --module-path for CDS and AppCDS.
High-level requirements:
---------------------------------
At dump time:
- the --module-path info, such as the location field of each ModuleEntry will be captured in the shared archive header. It could be right after the boot class path and app class path info;
- initially, we will only support modular jar specified in the --module-path.
At run time:
- if a class is loaded from a modular jar from a module path, check need to ensure the path to the jar file is the same as during dump time. The timestamp and size of the jar should not change compared with dump time.
./bin/java -Xshare:dump --module-path mlib -Xlog:cds=info
narrow_klass_base = 0x0000000800000000, narrow_klass_shift = 3
Allocated temporary class space: 1073741824 bytes at 0x00000008c0000000
Allocated shared space: 3221225472 bytes at 0x0000000800000000
[0.048s][info][cds] Info: the --module-path option is ignored when dumping the shared archive
This enhancement is for supporting the --module-path for CDS and AppCDS.
High-level requirements:
---------------------------------
At dump time:
- the --module-path info, such as the location field of each ModuleEntry will be captured in the shared archive header. It could be right after the boot class path and app class path info;
- initially, we will only support modular jar specified in the --module-path.
At run time:
- if a class is loaded from a modular jar from a module path, check need to ensure the path to the jar file is the same as during dump time. The timestamp and size of the jar should not change compared with dump time.
- relates to
-
JDK-8202130 [TESTBUG] Some appcds regression test cases fail with "Error: VM option 'PrintSystemDictionaryAtExit' is notproduct and is available only in debug version of VM"
-
- Resolved
-
-
JDK-8185996 JEP 310: Application Class-Data Sharing
-
- Closed
-
-
JDK-8199360 Rework the support for the 'ignored' module options in CDS
-
- Resolved
-
-
JDK-8203445 [TESTBUG] Remove appcds/jigsaw/limitmods/LimitModsTests.java
-
- Resolved
-
-
JDK-8202289 Non-empty directory in module path is not handled properly at CDS/AppCDS dump time
-
- Closed
-