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

nsk/share/test/StressOptions stressTime is scaled in getter but not when printed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      StressOptions was recently changed to take timeout-factor into consideration but getTime() that does the scaling is not used when printing the stress info:
      ```
          public void printInfo(PrintStream out) {
              out.println("Stress time: " + time + " seconds");
              out.println("Stress iterations factor: " + iterationsFactor);
              out.println("Stress threads factor: " + threadsFactor);
              out.println("Stress runs factor: " + runsFactor);
          }
      ```
      So the information printed in the beginning of the tests doesn't show the correct stress time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: