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

Use different default CDS archives depending on UseCompressOops

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      Since JDK-8232069, CDS can support -XX:-UseCompressedOops. However, there's only a single default CDS archive inside a JDK image, so you must choose whether to enable UseCompressedOops for the default archive when creating a JDK image.

      We should make it possible to use two default CDS archives:

      $JAVA_HOME/lib/server/classes.jsa
      $JAVA_HOME/lib/server/classes_nocoops.jsa

      If -XX:-UseCompressedOops is specified, we load from the _nocoops.jsa file instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                minqi Yumin Qi
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: