8160761: [TESTBUG] Several compiler tests fail with product bits
Summary: Add UnlockDiagnosticVMOptions to tests
Reviewed-by: goetz
--- a/hotspot/test/compiler/controldependency/TestEliminatedCastPPAtPhi.java Mon Jul 04 16:28:27 2016 +0200
+++ b/hotspot/test/compiler/controldependency/TestEliminatedCastPPAtPhi.java Wed Jul 13 19:08:07 2016 +0300
@@ -29,7 +29,7 @@
* @requires vm.gc=="Serial" | vm.gc=="Parallel"
*
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
- * -XX:+IgnoreUnrecognizedVMOptions -XX:+StressGCM
+ * -XX:+UnlockDiagnosticVMOptions -XX:+IgnoreUnrecognizedVMOptions -XX:+StressGCM
* compiler.controldependency.TestEliminatedCastPPAtPhi
*
*/
--- a/hotspot/test/compiler/loopopts/TestPredicateLostDependency.java Mon Jul 04 16:28:27 2016 +0200
+++ b/hotspot/test/compiler/loopopts/TestPredicateLostDependency.java Wed Jul 13 19:08:07 2016 +0300
@@ -27,7 +27,7 @@
* @bug 8069191
* @summary predicate moved out of loops and CastPP removal causes dependency to be lost
*
- * @run main/othervm -Xcomp -XX:+IgnoreUnrecognizedVMOptions -XX:+StressGCM
+ * @run main/othervm -Xcomp -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+StressGCM
* -XX:CompileCommand=compileonly,compiler.loopopts.TestPredicateLostDependency::m1
* compiler.loopopts.TestPredicateLostDependency
*
--- a/hotspot/test/compiler/membars/DekkerTest.java Mon Jul 04 16:28:27 2016 +0200
+++ b/hotspot/test/compiler/membars/DekkerTest.java Wed Jul 13 19:08:07 2016 +0300
@@ -25,15 +25,15 @@
* @test
* @bug 8007898
* @summary Incorrect optimization of Memory Barriers in Matcher::post_store_load_barrier().
- * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation
- * -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
- * compiler.membars.DekkerTest
- * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation
- * -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
- * compiler.membars.DekkerTest
- * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation
- * -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
- * compiler.membars.DekkerTest
+ * @run main/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+IgnoreUnrecognizedVMOptions
+ * -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
+ * compiler.membars.DekkerTest
+ * @run main/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+IgnoreUnrecognizedVMOptions
+ * -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
+ * compiler.membars.DekkerTest
+ * @run main/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+IgnoreUnrecognizedVMOptions
+ * -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM
+ * compiler.membars.DekkerTest
* @author Martin Doerr martin DOT doerr AT sap DOT com
*
* Run 3 times since the failure is intermittent.