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

use reproducible random in hotspot tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Delivered
    • Icon: P4 P4
    • 15
    • 15
    • hotspot

      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.

        1.
        introduce randomness k/w to hotspot test suite Sub-task Resolved Igor Ignatyev (Inactive)  
        2.
        use reproducible random in hotspot compiler tests Sub-task Resolved Igor Ignatyev (Inactive)  
        3.
        use reproducible random in hotspot runtime tests Sub-task Resolved Igor Ignatyev (Inactive)  
        4.
        use reproducible random in hotspot gc tests Sub-task Resolved Igor Ignatyev (Inactive)  
        5.
        use reproducible random in hotspot svc tests Sub-task Resolved Igor Ignatyev (Inactive)  
        6.
        use reproducible random in vmTestbase shared code Sub-task Resolved Igor Ignatyev (Inactive)  
        7.
        use reproducible random in :vmTestbase_vm_mlvm Sub-task Resolved Igor Ignatyev (Inactive)  
        8.
        use reproducible random in :vmTestbase_vm_compiler Sub-task Resolved Igor Ignatyev (Inactive)  
        9.
        use reproducible random in :vmTestbase_nsk_stress Sub-task Resolved Igor Ignatyev (Inactive)  
        10.
        use reproducible random in :vmTestbase_vm_gc Sub-task Resolved Igor Ignatyev (Inactive)  
        11.
        use reproducible random in :vmTestbase_vm_metaspace Sub-task Resolved Igor Ignatyev (Inactive)  
        12.
        use reproducible random in :vmTestbase_vm_defmeth Sub-task Resolved Igor Ignatyev (Inactive)  
        13.
        use reproducible random in :vmTestbase_nsk_sysdict Sub-task Resolved Igor Ignatyev (Inactive)  
        14.
        use reproducible random in :vmTestbase_vm_g1classunloading Sub-task Resolved Igor Ignatyev (Inactive)  
        15.
        use reproducible random in :vmTestbase_nsk_jvmti Sub-task Resolved Igor Ignatyev (Inactive)  
        16.
        use reproducible random in :vmTestbase_nsk_monitoring Sub-task Resolved Igor Ignatyev (Inactive)  
        17.
        use reproducible random in :vmTestbase_nsk_jdi Sub-task Resolved Igor Ignatyev (Inactive)  

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

              Created:
              Updated:
              Resolved: