RFR: 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java

Emanuel Peter epeter at openjdk.org
Tue Feb 14 08:30:33 UTC 2023


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”.

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

Commit messages:
 - 8302149: Speed up compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java

Changes: https://git.openjdk.org/jdk/pull/12536/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12536&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8302149
  Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12536.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12536/head:pull/12536

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


More information about the hotspot-compiler-dev mailing list