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

TEST_BUG: java/util/Timer/Args.java is too optimistic about the execution time of System.out.printf

XMLWordPrintable

    • b15
    • generic
    • generic
    • Verified

      Line 106 of the test reads:

         System.out.printf("elapsed=%d%n", System.currentTimeMillis() - start);

      This printf() call is rather expensive: it takes too much time on slow machines (typically solaris-sparc in Xcomp mode).

      As a result, the timer is not cancelled in time and the test fails.

      To reproduce, just compile the test standalone and run it on a sufficiently slow machine (v240-class machine should do) in Xcomp mode with any recent java 6 or 7 (verified with 6u7, 7b32).

            gadams Gary Adams (Inactive)
            sdolgovorcl Sergey Dolgov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: