-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b08
Before JDK-8261455:
$ java -XX:+UseCompressedOops -XX:SharedArchiveFile=foo.jsa -Xshare:dump
$ java -XX:-UseCompressedOops -XX:SharedArchiveFile=foo.jsa -XX:ArchiveClassesAtExit=bar.jsa -version
Error occurred during initialization of VM
-XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.
AfterJDK-8261455:
$ java -XX:+UseCompressedOops -XX:SharedArchiveFile=foo.jsa -Xshare:dump
$ java -XX:-UseCompressedOops -XX:SharedArchiveFile=foo.jsa -XX:ArchiveClassesAtExit=bar.jsa -version
java version "19-internal" 2022-09-20
Java(TM) SE Runtime Environment (build 19-internal+0-adhoc.iklam.open)
Java HotSpot(TM) 64-Bit Server VM (build 19-internal+0-adhoc.iklam.open, mixed mode)
$ ls -l bar.jsa
ls: cannot access 'bar.jsa': No such file or directory
$ java -XX:+UseCompressedOops -XX:SharedArchiveFile=foo.jsa -Xshare:dump
$ java -XX:-UseCompressedOops -XX:SharedArchiveFile=foo.jsa -XX:ArchiveClassesAtExit=bar.jsa -version
Error occurred during initialization of VM
-XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.
After
$ java -XX:+UseCompressedOops -XX:SharedArchiveFile=foo.jsa -Xshare:dump
$ java -XX:-UseCompressedOops -XX:SharedArchiveFile=foo.jsa -XX:ArchiveClassesAtExit=bar.jsa -version
java version "19-internal" 2022-09-20
Java(TM) SE Runtime Environment (build 19-internal+0-adhoc.iklam.open)
Java HotSpot(TM) 64-Bit Server VM (build 19-internal+0-adhoc.iklam.open, mixed mode)
$ ls -l bar.jsa
ls: cannot access 'bar.jsa': No such file or directory
- relates to
-
JDK-8279997 check_for_dynamic_dump should not exit vm
- Resolved
-
JDK-8261455 Automatically generate the CDS archive if necessary
- Resolved