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

Enable CDS shared heap for zero builds

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • None
    • infrastructure
    • b12

    Description

      ZERO uses UseSerialGC by default. After JDK-8290981 is integrated, when we dump the default CDS archive during the build process, it fails to dump the shared heap (which requires G1GC).

      The fix is to force -XX:+UseG1GC when dumping the default CDS archive during the build process.

      Out of caution, I am doing this in a separate RFE after JDK-8290981

      Expected gain:

      (Before)
      $ perf stat -r 40 ./images/jdk/bin/java -version
      0.018080 +- 0.000388 seconds time elapsed ( +- 2.15% )

      (After)
      $ perf stat -r 40 ./images/jdk/bin/java -version
      0.011986 +- 0.000205 seconds time elapsed ( +- 1.71% )

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: