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

[TESTBUG] compiler/c2/TestJumpTable.java fails with release VMs

    Details

    • Subcomponent:
    • Resolved In Build:
      b32

      Backports

        Description

        ## Symptom
        ```
        STDERR:
        Error: VM option 'UseSwitchProfiling' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
        Error: The unlock option must precede 'UseSwitchProfiling'.
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        ```

        ## Fix
        ```
        diff -r db9bdbeaed29 test/hotspot/jtreg/compiler/c2/TestJumpTable.java
        --- a/test/hotspot/jtreg/compiler/c2/TestJumpTable.java Mon Jan 13 14:09:30 2020 -0800
        +++ b/test/hotspot/jtreg/compiler/c2/TestJumpTable.java Tue Jan 14 09:01:21 2020 +0800
        @@ -26,7 +26,7 @@
          * @bug 8229855
          * @summary Test jump table with key value that gets out of bounds after loop unrolling.
          * @run main/othervm -XX:CompileCommand=dontinline,compiler.c2.TestJumpTable::test*
        - * -Xbatch -XX:-TieredCompilation -XX:-UseSwitchProfiling
        + * -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:-UseSwitchProfiling
          * compiler.c2.TestJumpTable
          */
        ```

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jiefu Jie Fu
                  Reporter:
                  jiefu Jie Fu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: