Enable CDS shared heap for zero builds

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: None
    • Component/s: 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% )

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

              Created:
              Updated:
              Resolved: