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

Replace currentTimeMillis with nanoTime in Stresser.java

XMLWordPrintable

    • gc
    • b13

      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:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: