With --enable-preview option while loading static shared archive during VM startup, runtime searches for archive file named "classes_valhalla.jsa" and throws following error.
CPROMPT>java --enable-preview -XX:+PrintSharedArchiveAndExit --version
[0.095s][error][cds] An error has occurred while processing the shared archive file.
[0.095s][error][cds] Unable to use shared archive.
Error occurred during initialization of VM
Unable to use shared archive.
Without --enable-preview archive file "classes.jsa" is loaded successfully.
CPROMPT>java --enable-preview -XX:+PrintSharedArchiveAndExit --version
[0.095s][error][cds] An error has occurred while processing the shared archive file.
[0.095s][error][cds] Unable to use shared archive.
Error occurred during initialization of VM
Unable to use shared archive.
Without --enable-preview archive file "classes.jsa" is loaded successfully.
- links to
-
Commit(lworld) openjdk/valhalla/7970eb02
-
Review(lworld) openjdk/valhalla/1187