RFR: 8290981: Enable CDS for zero builds [v6]
Ioi Lam
iklam at openjdk.org
Tue Aug 16 18:23:15 UTC 2022
> 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.
Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
added !UseSharedSpaces back to _fast_invokevfinal check
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/9869/files
- new: https://git.openjdk.org/jdk/pull/9869/files/eb0e295d..8e4bef9d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=9869&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=9869&range=04-05
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/9869.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9869/head:pull/9869
PR: https://git.openjdk.org/jdk/pull/9869
More information about the build-dev
mailing list