RFR: 8257505: nsk/share/test/StressOptions stressTime is scaled in getter but not when printed
Stefan Johansson
sjohanss at openjdk.java.net
Tue Dec 1 21:29:02 UTC 2020
Please review this small change to print the correct stress time for tests using `StressOptions`.
Quite recently the `getTime()` method on `StressOptions` was changed to scale the stress time using the JTREG timeout factor. See: [JDK-8252522](https://bugs.openjdk.java.net/browse/JDK-8252522)
The `printInfo()` method was left using the raw `time` member and will thus output a different time from the one actually used. This change fixes this by using the getter. For consistency the other values are fetched by the getters as well.
-------------
Commit messages:
- 8257505: nsk/share/test/StressOptions stressTime is scaled in getter but not when printed
Changes: https://git.openjdk.java.net/jdk/pull/1545/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1545&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8257505
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/1545.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1545/head:pull/1545
PR: https://git.openjdk.java.net/jdk/pull/1545
More information about the hotspot-dev
mailing list