-
Bug
-
Resolution: Fixed
-
P2
-
8u60, 9
-
b114
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8208873 | 8u201 | Muthusamy Chinnathambi | P2 | Resolved | Fixed | b01 |
JDK-8152757 | 8u192 | Muthusamy Chinnathambi | P2 | Closed | Fixed | b01 |
JDK-8216693 | emb-8u201 | Unassigned | P2 | Resolved | Fixed | master |
public void go() {
final float FINAL = getValue();
for (...) {
if (FINAL != getValue()) {
System.out.println("FAIL");
}
}
}
float getValue() {
return 6;
}
Being run with G1 and -Xcomp the value of the FINAL variable may change...
The source is attached.
# java -Xmx300m -XX:+UseG1GC -Xmixed TestFinalFloat
Final value: 6.0
Still passed
Still passed
Still passed
Final values has changed: -8.532477E32
TEST FAILED
- backported by
-
JDK-8208873 C1: G1 barriers don't preserve FP registers
-
- Resolved
-
-
JDK-8216693 C1: G1 barriers don't preserve FP registers
-
- Resolved
-
-
JDK-8152757 C1: G1 barriers don't preserve FP registers
-
- Closed
-
- duplicates
-
JDK-8186112 Using G1 Garbage Collector causes in use variable to be cleared
-
- Closed
-
-
JDK-8165766 TieredCompilation will change primitive autoboxing value on loop method call occasionally
-
- Closed
-
- relates to
-
JDK-8153194 [TEST_BUG] PreserveFPRegistersTest.java runs out of memory in the nightlies
-
- Resolved
-
-
JDK-8161085 PreserveFPRegistersTest fails with 'AssertionError: Final value has changed'
-
- Resolved
-
-
JDK-8152168 SumRedSqrt_Double.java fails with "Invalid sum of elements"
-
- Closed
-
-
JDK-8165766 TieredCompilation will change primitive autoboxing value on loop method call occasionally
-
- Closed
-