RFR: 8273933: [TESTBUG] Test must run without preallocated exceptions [v2]

Nils Eliasson neliasso at openjdk.java.net
Fri Sep 17 14:20:07 UTC 2021


> Executing vmTestbase/jit/t/t105/t105.java with the fix for (JDK-8273277) makes the test fail when run with the following arguments:
> 
> -XX:+TieredCompilation
> -XX:Tier0BackedgeNotifyFreqLog=0
> -XX:Tier2BackedgeNotifyFreqLog=0
> -XX:Tier3BackedgeNotifyFreqLog=0
> -XX:Tier2BackEdgeThreshold=1
> -XX:Tier3BackEdgeThreshold=1
> -XX:Tier4BackEdgeThreshold=1
> -Xbatch
> 
> The problem is that the tests expects a detailed message from ArrayIndexOutOfBoundsException, but this test will trigger the optimization that reuses preallocated exceptions that have an empty detailed exceptions.
> 
> It is wrong for the test to assume exceptions messages.
> 
> Solution disable preallocated exceptions with the flag -XX:-ProfileTraps.

Nils Eliasson has updated the pull request incrementally with one additional commit since the last revision:

  Update copyright year

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5560/files
  - new: https://git.openjdk.java.net/jdk/pull/5560/files/bbb58d5c..80187cfa

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5560&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5560&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5560.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5560/head:pull/5560

PR: https://git.openjdk.java.net/jdk/pull/5560


More information about the hotspot-compiler-dev mailing list