RFR: 8302147: Speed up compiler/jvmci/compilerToVM/IterateFramesNative.java [v2]
Emanuel Peter
epeter at openjdk.org
Fri Feb 10 16:14:50 UTC 2023
> We have two run statements.
>
> The `-Xbatch` version takes `5 sec`, now `1.5`.
> And the `-Xcomp` took `19` and now takes `0.5`.
>
> I discussed it with @woess the original author of the test. He suggested this fix.
> The first run statement still works as before, the second one, which sets `-Dcompiler.jvmci.compilerToVM.IterateFramesNative.checkCompiled=true` and has `CHECK_COMPILED == true` now only runs one iteration. This should be sufficient, we see that the whitebox checks successfully that the methods were compiled.
>
> **Update**
> For `-Xbatch`, I simply reduced the iteration count. I saw that after `255` iterations both methods were already compiled, so I thought `1000` should suffice. I moved the compilation-verification outside the loop - so now we check that we compile in both cases.
Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:
speed up the -Xbatch case
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12496/files
- new: https://git.openjdk.org/jdk/pull/12496/files/059ef166..72c53dfb
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12496&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12496&range=00-01
Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/12496.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12496/head:pull/12496
PR: https://git.openjdk.org/jdk/pull/12496
More information about the hotspot-compiler-dev
mailing list