Integrated: 8273933: [TESTBUG] Test must run without preallocated exceptions

Nils Eliasson neliasso at openjdk.java.net
Mon Sep 20 15:02:54 UTC 2021


On Fri, 17 Sep 2021 09:21:40 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:

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

This pull request has now been integrated.

Changeset: 4d95a5d6
Author:    Nils Eliasson <neliasso at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4d95a5d6dc7cc3d2b239c554a1302ac647807bd6
Stats:     5 lines in 1 file changed: 3 ins; 0 del; 2 mod

8273933: [TESTBUG] Test must run without preallocated exceptions

Reviewed-by: chagedorn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list