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

Replace currentTimeMillis() with nanoTime() in jtreg/gc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • hotspot
    • None
    • gc
    • b12

      In gc testing, we are not interested in the real time clock but in elapsed time. `System.currentTimeMillis()`is not monotonic.

            lkorinth Leo Korinth
            lkorinth Leo Korinth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: