Integrated: 8290981: Enable CDS for zero builds

Ioi Lam iklam at openjdk.org
Fri Aug 19 19:21:49 UTC 2022


On Sun, 14 Aug 2022 05:21:13 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Enable CDS for zero builds. `java --version` is about 2x faster now.
> 
> 
> $ perf stat -r 40 ./images/jdk/bin/java -Xshare:off -version
> 0.034645 +- 0.000044 seconds time elapsed  ( +-  0.13% )
> $ perf stat -r 40 ./images/jdk/bin/java -version
> 0.018080 +- 0.000388 seconds time elapsed  ( +-  2.15% )
> 
> I also fixed a bug in Images.gmk that always wrote the default archive to $JAVA_HOME/lib/server. This fix also makes it possible for a client libjvm to have a default CDS archive.

This pull request has now been integrated.

Changeset: 57aac2ab
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/57aac2ab6569c18a56e9a36f174bb0bf09955f83
Stats:     134 lines in 5 files changed: 63 ins; 28 del; 43 mod

8290981: Enable CDS for zero builds

Co-authored-by: Aleksey Shipilev <shade at openjdk.org>
Reviewed-by: erikj, shade, ihse

-------------

PR: https://git.openjdk.org/jdk/pull/9869



More information about the build-dev mailing list