-
Bug
-
Resolution: Fixed
-
P5
-
11, 17, 21, 22, 23
-
b11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8336731 | 21.0.5-oracle | Md Shahbaz Yusuf | P5 | Resolved | Fixed | b04 |
JDK-8336964 | 21.0.5 | Aleksey Shipilev | P5 | Resolved | Fixed | b01 |
CtwRunner does abs(random.nextInt()), which would break when random returns Integer.MIN_VALUE. Its abs() would be negative, which would be caught by JVM argument parsing code as incorrectly specified option. This would yield a very rare CTW failure.
https://github.com/openjdk/jdk/blob/cc276ff0dfa0a568ebf0a66e0762a6de19fa6a49/test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/CtwRunner.java#L303
Should probably do it like jcstress does it:
https://github.com/openjdk/jcstress/blob/84bd76e115604e81e721674eff0ff39c5a3bf3b8/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java#L565
https://github.com/openjdk/jdk/blob/cc276ff0dfa0a568ebf0a66e0762a6de19fa6a49/test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/CtwRunner.java#L303
Should probably do it like jcstress does it:
https://github.com/openjdk/jcstress/blob/84bd76e115604e81e721674eff0ff39c5a3bf3b8/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java#L565
- backported by
-
JDK-8336731 CTW: Runner can produce negative StressSeed
- Resolved
-
JDK-8336964 CTW: Runner can produce negative StressSeed
- Resolved
- links to
-
Commit openjdk/jdk/bb675afa
-
Commit(master) openjdk/jdk21u-dev/555c0c12
-
Review openjdk/jdk/17896
-
Review(master) openjdk/jdk21u-dev/860
(1 links to)