--- a/hotspot/test/compiler/c2/8007294/Test8007294.java Tue Jan 12 14:55:15 2016 +0000
+++ b/hotspot/test/compiler/c2/8007294/Test8007294.java Mon Jan 18 21:34:28 2016 +0100
@@ -24,6 +24,7 @@
/*
* @test
* @bug 8007294
+ * @bug 8146999
* @summary ReduceFieldZeroing doesn't check for dependent load and can lead to incorrect execution
* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline -XX:-UseOnStackReplacement -XX:-BackgroundCompilation Test8007294
*
@@ -82,6 +83,7 @@
}
}
for (int i = 0; i < 20000; i++) {
+ test2(0); // pollute profile
int res = test2(1);
if (res != 2) {
System.out.println("FAILED test2 = " + res);