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

Replace currentTimeMillis with nanoTime in Stresser.java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      test/hotspot/jtreg/vmTestbase/nsk/share/test/Stresser.java uses System.currentTimeMillis to measure elapsed time to determine whether it has reached stressing time. For this to function properly, it requires a monotonic timer, e.g. nanoTime.

      The purpose is similar to JDK-8311639.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: