Integrated: 8302147: Speed up compiler/jvmci/compilerToVM/IterateFramesNative.java
Emanuel Peter
epeter at openjdk.org
Wed Feb 15 07:39:50 UTC 2023
On Thu, 9 Feb 2023 15:58:05 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> We have two run statements.
>
> The `-Xbatch` version takes `5 sec`, now `1.5-2.3`.
> 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. We had `CompilerWhiteBoxTest.THRESHOLD = 150_000` iterations, now I reduced it to `10_000`, which should be sufficient.
>
> I would have liked to assert compilation in both cases, but the `-Xbatch` case does not always lead to compilation, especially when we have `-XX:-TieredCompilation`.
This pull request has now been integrated.
Changeset: 46bcc490
Author: Emanuel Peter <epeter at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/46bcc4901ea66589ec4c6904f8bab9156422312a
Stats: 18 lines in 1 file changed: 9 ins; 7 del; 2 mod
8302147: Speed up compiler/jvmci/compilerToVM/IterateFramesNative.java
Reviewed-by: kvn, thartmann
-------------
PR: https://git.openjdk.org/jdk/pull/12496
More information about the hotspot-compiler-dev
mailing list