-
Bug
-
Resolution: Unresolved
-
P2
-
19
Attached Test.java fails when C2 compiled.
static void test() {
for (int i = 1500; i > 0; i--) {
try {
int tmp = array[idx--];
} catch (Exception e) {
// Ignore
}
}
}
java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::test -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+StressGCM Test.java
Exception in thread "main" java.lang.RuntimeException: Wrong result: -2500 != -1500
at Test.main(Test.java:43)
static void test() {
for (int i = 1500; i > 0; i--) {
try {
int tmp = array[idx--];
} catch (Exception e) {
// Ignore
}
}
}
java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::test -XX:-TieredCompilation -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+StressGCM Test.java
Exception in thread "main" java.lang.RuntimeException: Wrong result: -2500 != -1500
at Test.main(Test.java:43)
- caused by
-
JDK-8281322 C2: always construct strip mined loop initially (even if strip mining is disabled)
-
- Resolved
-