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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: