-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
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 afterJDK-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% )
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
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% )
- relates to
-
JDK-8290981 Enable CDS for zero builds
-
- Resolved
-
-
JDK-8292847 Zero: Allow ergonomics to select the GC
-
- Resolved
-