Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273933

[TESTBUG] Test must run without preallocated exceptions

XMLWordPrintable

    • b16

        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.



              neliasso Nils Eliasson (Inactive)
              neliasso Nils Eliasson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: