-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: hotspot
Reported here: https://mail.openjdk.org/pipermail/leyden-dev/2025-February/001538.html
For a command line line this:
java -XX:+AutoCreateSharedArchive -XX:SharedArchiveFile=foo.jsa ...
If foo.jsa already exists but is a static CDS archive, this will be printed
[0.001s][warning][cds] AutoCreateSharedArchive is ignored because foo.jsa is a static archive
=====================
Expected behavior:
-- if foo.jsa can be used, then it shouldn't be updated
-- if foo.jsa cannot be used (because JDK or app has been updated), it should be overwritten at VM exit.
For a command line line this:
java -XX:+AutoCreateSharedArchive -XX:SharedArchiveFile=foo.jsa ...
If foo.jsa already exists but is a static CDS archive, this will be printed
[0.001s][warning][cds] AutoCreateSharedArchive is ignored because foo.jsa is a static archive
=====================
Expected behavior:
-- if foo.jsa can be used, then it shouldn't be updated
-- if foo.jsa cannot be used (because JDK or app has been updated), it should be overwritten at VM exit.