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

Test com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java failed: out of expected range

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 23
    • 21, 22
    • core-svc

    Description

      ---------System.err:(10/605)----------
      java.lang.RuntimeException: TEST FAILED: MyThread-1 CPU time = 16805360 previous CPU time 16628040 out of expected range
      at ThreadCpuTimeArray.main(ThreadCpuTimeArray.java:144)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      The "expected range" is within a DELTA of 100.

      But the other odd thing about this failure is that the main thread is being continually interrupted somehow:

      Unexpected exception is thrown.
      java.lang.InterruptedException
      at java.base/java.lang.Object.wait0(Native Method)
      at java.base/java.lang.Object.wait(Object.java:366)
      at java.base/java.lang.Object.wait(Object.java:339)
      at ThreadCpuTimeArray$MyThread.run(ThreadCpuTimeArray.java:247)

      repeated for each join() in the loop!

      Attachments

        Issue Links

          Activity

            People

              kevinw Kevin Walls
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: