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
./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