Release Note: UseCompactObjectHeaders CDS Archives Creation

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: hotspot

      The CDS archives for the Compact Object Headers feature are not included in the JDK released by Oracle.
      In order to take advantage of the start-up performance offered by CDS, the user can build the CDS archives
      with Compact Object Headers as follows:

      `java -Xshare:dump -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders`

      The above command generates the `classes_coh.jsa` which is located in the same directory as the default
      CDS archive (`classes.jsa`). For example, on Linux, it is located in the `<jdk>/lib/server` directory.

      To generate a CDS archive with Compact Object Headers and with compressed oops disabled:

      `java -Xshare:dump -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders -XX:-UseCompressedOops`

      The above command generates the `classes_nocoops_coh.jsa` which is located in the same directory as the default
      CDS archive with compressed oops disabled (`classes_nocoops.jsa`). For example, on Linux, it is located in the
      `<jdk>/lib/server` directory.

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: