RFR: 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Vladimir Kozlov
kvn at openjdk.org
Tue Feb 14 19:27:43 UTC 2023
On Mon, 13 Feb 2023 14:50:16 GMT, Emanuel Peter <epeter 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::*`
-------------
PR: https://git.openjdk.org/jdk/pull/12536
More information about the hotspot-compiler-dev
mailing list