Integrated: 8292329: Enable CDS shared heap for zero builds
Ioi Lam
iklam at openjdk.org
Wed Aug 24 22:42:32 UTC 2022
On Tue, 23 Aug 2022 15:56:35 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> ZERO uses UseSerialGC by default. 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.
>
> Speed up:
>
> (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% )
This pull request has now been integrated.
Changeset: 76ee5495
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/76ee5495cd00f5546a5748051cc36965a8e936db
Stats: 13 lines in 1 file changed: 11 ins; 0 del; 2 mod
8292329: Enable CDS shared heap for zero builds
Reviewed-by: shade, erikj, ihse
-------------
PR: https://git.openjdk.org/jdk/pull/9984
More information about the build-dev
mailing list