RFR: 8302152: Speed up compiler/loopopts/TestInfLoopNearUsePlacement.java

Tobias Hartmann thartmann at openjdk.org
Mon Feb 13 08:54:36 UTC 2023


On Fri, 10 Feb 2023 16:39:51 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> From over `5 sec` to about `0.8 sec`.
> 
> I simply reduced the `Thread.sleep`.
> 
> I verified that the same compilations still happen.
> 
> ~/Documents/jtreg/bin/jtreg -va -s -jdk:/home/emanuel/Documents/fork5-jdk/build/linux-x64-debug/jdk/ -javaoptions:"-XX:CompileCommand=printcompilation,compiler.loopopts.TestInfLoopNearUsePlacement::test" /home/emanuel/Documents/fork5-jdk/open/test/hotspot/jtreg/compiler/loopopts/TestInfLoopNearUsePlacement.java
> 
>     283   32 % !   3       compiler.loopopts.TestInfLoopNearUsePlacement::test @ 39 (61 bytes)
>     284   33 % !   4       compiler.loopopts.TestInfLoopNearUsePlacement::test @ 39 (61 bytes)
>     286   34   !   4       compiler.loopopts.TestInfLoopNearUsePlacement::test (61 bytes)
> 
> 
> On the time measurement that I got initially reported, this test was flagged as especially long-running, with `17 sec`. There may well be another issue, but I hope this fix already does the trick. We will see this in a while once I get the new data.

We have several other tests that do the exact same thing (see `grep "thread.setDaemon" -r test/hotspot/jtreg/compiler/`). Could you adjust them as well (and update the scope/description of the RFE accordingly)?

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

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


More information about the hotspot-compiler-dev mailing list