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

CheckNativeMonitorFlags.java throws RuntimeException Error: VM option 'NativeMonitorTimeout' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 11
    • hotspot
    • x86_64
    • linux, os_x, windows

      Test: runtime/8038903/CheckNativeMonitorFlags.java


      ----------System.err:(22/1298)----------
       stdout: [];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option NativeMonitorTimeout; support was removed in 11.0
      java version "11-internal" 2018-09-25
      Java(TM) SE Runtime Environment 18.9 (fastdebug build 11-internal+0-jdk11-jdk.933)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (fastdebug build 11-internal+0-jdk11-jdk.933, mixed mode)
      ]
       exitValue = 0

      java.lang.RuntimeException: 'Error: VM option 'NativeMonitorTimeout' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:150)
      at CheckNativeMonitorFlags.main(CheckNativeMonitorFlags.java:29)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
      at java.base/java.lang.Thread.run(Thread.java:834)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Error: VM option 'NativeMonitorTimeout' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.' missing from stdout/stderr


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Error: VM option 'NativeMonitorTimeout' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.' missing from stdout/stderr

            pchilanomate Patricio Chilano Mateo
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: