8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot
authorvlivanov
Tue, 04 Dec 2018 17:18:11 -0800
changeset 52827 5261951acd41
parent 52826 c0f40bca91a5
child 52828 f6005102c6ef
8146090: java/lang/ref/ReachabilityFenceTest.java fails with -XX:+DeoptimizeALot Reviewed-by: dholmes, iignatyev
test/jdk/java/lang/ref/ReachabilityFenceTest.java
--- 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
+}