RFR: 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Vladimir Kozlov
kvn at openjdk.org
Thu Feb 16 18:28:29 UTC 2023
On Thu, 16 Feb 2023 16:41:22 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java line 36:
>>
>>> 34: * compiler.jsr292.methodHandleExceptions.TestAMEnotNPE
>>> 35: * @run main/othervm -Xcomp
>>> 36: * -XX:CompileCommand=compileonly,*::test
>>
>> What time you get if you specify all methods in test's class instead:
>> `compiler.jsr292.methodHandleExceptions.TestAMEnotNPE::*`
>
> It takes just a tiny bit longer. `2.3` seconds for that run, whereas with `-XX:CompileCommand=compileonly,*::test` I get `2` seconds.
I suggest then to use my proposal - compile all test's methods. I concern that compiling only one method may not catch some issues when the method is inlined.
-------------
PR: https://git.openjdk.org/jdk/pull/12536
More information about the hotspot-compiler-dev
mailing list