8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot
Reviewed-by: dholmes, iignatyev
--- a/test/jdk/java/lang/ref/ReachabilityFenceTest.java Wed Dec 05 08:48:49 2018 +0800
+++ b/test/jdk/java/lang/ref/ReachabilityFenceTest.java Tue Dec 04 17:18:11 2018 -0800
@@ -25,6 +25,8 @@
* @bug 8133348
* @summary Tests if reachabilityFence is working
*
+ * @requires vm.opt.DeoptimizeALot != true
+ *
* @run main/othervm -Xint -Dpremature=false ReachabilityFenceTest
* @run main/othervm -XX:TieredStopAtLevel=1 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -XX:TieredStopAtLevel=2 -Dpremature=true ReachabilityFenceTest
@@ -142,4 +144,4 @@
finalized.set(true);
}
}
-}
\ No newline at end of file
+}