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

Enable CDS shared heap for zero builds

XMLWordPrintable

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

      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% )

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

              Created:
              Updated:
              Resolved: