Skip to content

Commit a290256

Browse files
Gergö BaranyDoug Simon
Gergö Barany
authored and
Doug Simon
committedNov 7, 2023
8315680: java/lang/ref/ReachabilityFenceTest.java should run with -Xbatch
Reviewed-by: dnsimon, never, psandoz
1 parent b1625af commit a290256

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)
Please sign in to comment.