-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b13
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8307324 | 17.0.9-oracle | Vikrant Agarwal | P4 | Resolved | Fixed | b01 |
JDK-8310378 | 17.0.9 | Martin Doerr | P4 | Resolved | Fixed | b01 |
JDK-8321264 | 11.0.23 | Amos SHI | P4 | Resolved | Fixed | b01 |
JDK-8315211 | 11.0.22-oracle | ANANT SINGH | P4 | Resolved | Fixed | b01 |
void ck(long x, long y) {
if (x != y) {
throw new RuntimeException(" x = " + Long.toHexString(x) + ", y = " + Long.toHexString(y));
}
}
void ck(double x, double y) {
if (x == x && y == y && x != y) {
ck(x, y);
}
}
The long throws a RuntimeException.
The one for double goes into an infinite recursion, and eventually throws a StackOverflowError. This does not make much sense.
I spoke with the original author [~psandoz], he agrees to replace it with an analogue RuntimeException.
void ck(double x, double y) {
if (x == x && y == y && x != y) {
throw new RuntimeException(...);
}
}
Code introduced in
Bug in
- backported by
-
JDK-8307324 [REDO] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Resolved
-
JDK-8310378 [REDO] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Resolved
-
JDK-8315211 [REDO] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Resolved
-
JDK-8321264 [REDO] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Resolved
- clones
-
JDK-8282573 ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Closed
- relates to
-
JDK-8282661 [BACKOUT] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
- Resolved
-
JDK-8282555 Missing memory edge when spilling MoveF2I, MoveD2L etc
- Closed
-
JDK-8151163 All Buffer implementations should leverage Unsafe unaligned accessors
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/d4fcded4
-
Commit openjdk/jdk17u-dev/bda6723c
-
Commit openjdk/jdk/a584c904
-
Commit openjdk/jdk/d07f7c76
-
Review openjdk/jdk11u-dev/2309
-
Review openjdk/jdk17u-dev/1470
-
Review openjdk/jdk/7674
-
Review openjdk/jdk/7723