-
Bug
-
Resolution: Fixed
-
P4
-
11, 15, 16
-
b27
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321261 | 11.0.23 | Amos SHI | P4 | Resolved | Fixed | b01 |
JDK-8316938 | 11.0.22-oracle | Shivangi Gupta | P4 | Resolved | Fixed | b01 |
JDK-8327739 | 8u421 | Shivangi Gupta | P4 | Resolved | Fixed | b01 |
ADDITIONAL SYSTEM INFORMATION :
This seems to have existed at least back to Java 9.
A DESCRIPTION OF THE PROBLEM :
https://hg.openjdk.java.net/jdk/jdk15/file/0dabbdfd97e6/test/jdk/java/util/logging/DrainFindDeadlockTest.java#l69
https://hg.openjdk.java.net/jdk/jdk15/file/0dabbdfd97e6/test/jdk/java/util/logging/LoggingDeadlock.java#l62
`int runs = (int) Math.random() * 1000000;` is always zero, so the subsequent loop always executes zero times.
This seems to have existed at least back to Java 9.
A DESCRIPTION OF THE PROBLEM :
https://hg.openjdk.java.net/jdk/jdk15/file/0dabbdfd97e6/test/jdk/java/util/logging/DrainFindDeadlockTest.java#l69
https://hg.openjdk.java.net/jdk/jdk15/file/0dabbdfd97e6/test/jdk/java/util/logging/LoggingDeadlock.java#l62
`int runs = (int) Math.random() * 1000000;` is always zero, so the subsequent loop always executes zero times.
- backported by
-
JDK-8316938 randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay
-
- Resolved
-
-
JDK-8321261 randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay
-
- Resolved
-
-
JDK-8327739 randomDelay in DrainDeadlockT and LoggingDeadlock do not randomly delay
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/4245e3c0
-
Commit openjdk/jdk/a93841ac
-
Review openjdk/jdk11u-dev/2307
-
Review openjdk/jdk/1441
(2 links to)