Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341553 Remove UseCompactObjectHeaders extra CDS archives
  3. JDK-8341555

Release Note: UseCompactObjectHeaders CDS Archives Creation

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 24
    • 24
    • 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.

            ccheung Calvin Cheung
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: