Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350057

AutoCreateSharedArchive does not overwrite static CDS archive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • 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.


            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: