RFR: 8255277: randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay

Daniel Fuchs dfuchs at openjdk.java.net
Wed Nov 25 20:18:01 UTC 2020


Hi,

Please find here an almost trivial fix for:
8255277: randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay

The two tests are changed from using Math.random() to using the jdk test lib RandomFactory, which prints its seed in the log file and allows for better reproducibility in case of failures.

best regards,

-- daniel

-------------

Commit messages:
 - 8255277: randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay

Changes: https://git.openjdk.java.net/jdk/pull/1441/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1441&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255277
  Stats: 17 lines in 2 files changed: 13 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1441.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1441/head:pull/1441

PR: https://git.openjdk.java.net/jdk/pull/1441


More information about the core-libs-dev mailing list