Skip to content

Commit

Permalink
8315680: java/lang/ref/ReachabilityFenceTest.java should run with -Xb…
Browse files Browse the repository at this point in the history
…atch

Backport-of: a290256bbf85a52fbeab24dab5fbe195cf58750f
  • Loading branch information
GoeLin committed Dec 14, 2023
1 parent 0106db0 commit 901048b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/jdk/java/lang/ref/ReachabilityFenceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
*
* @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
* @run main/othervm -XX:TieredStopAtLevel=3 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -XX:TieredStopAtLevel=4 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -Xint -Dpremature=false ReachabilityFenceTest
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=1 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=2 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=3 -Dpremature=true ReachabilityFenceTest
* @run main/othervm -Xbatch -XX:TieredStopAtLevel=4 -Dpremature=true ReachabilityFenceTest
*/

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

// Enough to OSR and compile
Expand Down

1 comment on commit 901048b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.