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

use reproducible random in hotspot tests

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:

      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

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

              Dates

              Created:
              Updated:
              Resolved: