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

test/java/lang/management/ThreadMXBean/ThreadCpuTime.java DELTA should be optional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 7
    • core-svc

      The ThreadCpuTime.java j.l.m unit test uses a value DELTA as the minimum difference
      between successive calls to getThread{Cpu|User}Time(). This is dubious, as the
      comment "careful about this value" says. Presumably the actual delta between
      successive calls varies from platform to platform. It may be possible to eliminate
      the test entirely.

      The code for test/com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java was borrowed
      from ThreadCpuTime.java, thus uses DELTA in the same way. It should be fixed also.

            kevinw Kevin Walls
            phh Paul Hohensee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: