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

Test that distinct seeds produce distinct traces for compiler stress flags

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • hotspot

      compiler/debug/TestStress.java tests that various compiler stress options produce the same traces when given the same seed. However, we do not currently test that different seeds produce different traces. We should add such tests to ensure the stress options work as intended.

      An earlier concern with adding such tests is that different seeds may sometimes incidentally produce the same trace. Therefore, tests of the form

        "Given two different seeds, ensure they produce different traces"

      are fragile. Instead, we should use more robust tests of the form

        "Given N different seeds, make sure they do not all produce the same trace".

      where we can tune the sensitivity using N.

            snatarajan Saranya Natarajan
            dlunden Daniel Lunden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: