Skip to content

Commit 901048b

Browse files
committed
8315680: java/lang/ref/ReachabilityFenceTest.java should run with -Xbatch
Backport-of: a290256bbf85a52fbeab24dab5fbe195cf58750f
1 parent 0106db0 commit 901048b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jdk/java/lang/ref/ReachabilityFenceTest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
*
2828
* @requires vm.opt.DeoptimizeALot != true
2929
*
30-
* @run main/othervm -Xint -Dpremature=false ReachabilityFenceTest
31-
* @run main/othervm -XX:TieredStopAtLevel=1 -Dpremature=true ReachabilityFenceTest
32-
* @run main/othervm -XX:TieredStopAtLevel=2 -Dpremature=true ReachabilityFenceTest
33-
* @run main/othervm -XX:TieredStopAtLevel=3 -Dpremature=true ReachabilityFenceTest
34-
* @run main/othervm -XX:TieredStopAtLevel=4 -Dpremature=true ReachabilityFenceTest
30+
* @run main/othervm -Xint -Dpremature=false ReachabilityFenceTest
31+
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=1 -Dpremature=true ReachabilityFenceTest
32+
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=2 -Dpremature=true ReachabilityFenceTest
33+
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=3 -Dpremature=true ReachabilityFenceTest
34+
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=4 -Dpremature=true ReachabilityFenceTest
3535
*/
3636

3737
import java.lang.ref.Reference;
@@ -54,7 +54,7 @@ public class ReachabilityFenceTest {
5454
* the object cannot be finalized. There is no sense running a positive test when premature finalization
5555
* is not expected. It is a job for negative test to verify that invariant.
5656
*
57-
* The test methods should be appropriately compiled, therefore we do several iterations.
57+
* The test methods should be appropriately compiled, therefore we do several iterations and run with -Xbatch.
5858
*/
5959

6060
// Enough to OSR and compile

0 commit comments

Comments
 (0)