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

use reproducible random in hotspot tests

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Delivered
    • 15
    • 15
    • hotspot

    Description

      some of hotspot tests still use java.util.Random or Math.random directly, to make tests execution more deterministic it's better to use Utils.getRandomInstance() in all such tests.

      it also makes sense to adopt 'randomness' k/w (used in jdk test suite), so it will be easier to identify tests whose behavior might vary from run to run.

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            iignatyev Igor Ignatyev (Inactive)
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: