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

[TESTBUG] runtime/StackTrace/HiddenFrameTest.java fails with release VM

    Details

    • Subcomponent:
    • Resolved In Build:
      b13

      Backports

        Description

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

        - Reproduce
        --------------------------------------------------------
        Ben="runtime/StackTrace/HiddenFrameTest.java"
        make test TEST="${Ben}" CONF=release
        --------------------------------------------------------

        - Fix
        --------------------------------------------------------
        diff -r 4364524f8cac test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java
        --- a/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java Fri Aug 30 09:38:40 2019 +0800
        +++ b/test/hotspot/jtreg/runtime/StackTrace/HiddenFrameTest.java Fri Aug 30 11:11:25 2019 +0800
        @@ -26,8 +26,8 @@
          * @bug 8216977
          * @summary Test null source file and negative line number from hidden frame produces correct output.
          * @library /test/lib
        - * @run main/othervm -XX:+ShowHiddenFrames HiddenFrameTest visible
        - * @run main/othervm -XX:-ShowHiddenFrames HiddenFrameTest hidden
        + * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+ShowHiddenFrames HiddenFrameTest visible
        + * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-ShowHiddenFrames HiddenFrameTest hidden
          */
         
         import jdk.test.lib.Asserts;
        --------------------------------------------------------

          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: