On Sun, 14 Aug 2022 05:21:13 GMT, Ioi Lam <[email protected]> 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 <[email protected]>
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 <[email protected]>
Reviewed-by: erikj, shade, ihse

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

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

Reply via email to