RFR: 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Emanuel Peter
epeter at openjdk.org
Thu Feb 16 16:44:28 UTC 2023
On Tue, 14 Feb 2023 19:25:14 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Speed up via compile restriction.
>> For the 3 jobs, time used to be:
>> ` 0.7`, `1.5`, `25.7`
>> Now the third one `-Xcomp` is much faster:
>> `0.7`, `1.5`, `2.0`
>>
>> To quote @iwanowww :
>>
>> According to its name, the test ensures exceptions are thrown in proper order (AME precedes NPE).
>> So, it’s enough to compile the methods which contain such call sites.
>> I believe they reside in methods named “test”.
>
> 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.
-------------
PR: https://git.openjdk.org/jdk/pull/12536
More information about the hotspot-compiler-dev
mailing list