< prev index next >

test/compiler/jvmci/compilerToVM/ShouldDebugNonSafepointsTest.java

Print this page




  28  * @library / /testlibrary /test/lib/
  29  * @library ../common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.vm.ci/jdk.vm.ci.hotspot
  32  * @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  33  * @build compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  34  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
  35  *                   -XX:+UnlockDiagnosticVMOptions
  36  *                   -XX:+DebugNonSafepoints
  37  *                   -Dcompiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected=true
  38  *                   compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  39  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
  40  *                   -XX:+UnlockDiagnosticVMOptions
  41  *                   -XX:-DebugNonSafepoints
  42  *                   -Dcompiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected=false
  43  *                   compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  44  */
  45 
  46 package compiler.jvmci.compilerToVM;
  47 
  48 import jdk.vm.ci.hotspot.CompilerToVMHelper;
  49 import jdk.test.lib.Asserts;

  50 
  51 public class ShouldDebugNonSafepointsTest {
  52     private static final boolean EXPECTED = Boolean.getBoolean("compiler"
  53             + ".jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected");
  54 
  55     public static void main(String args[]) {
  56         new ShouldDebugNonSafepointsTest().runTest();
  57     }
  58 
  59     private void runTest() {
  60         Asserts.assertEQ(CompilerToVMHelper.shouldDebugNonSafepoints(),
  61                 EXPECTED, "Unexpected shouldDebugnonSafepoints value");
  62     }
  63 }


  28  * @library / /testlibrary /test/lib/
  29  * @library ../common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.vm.ci/jdk.vm.ci.hotspot
  32  * @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  33  * @build compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  34  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
  35  *                   -XX:+UnlockDiagnosticVMOptions
  36  *                   -XX:+DebugNonSafepoints
  37  *                   -Dcompiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected=true
  38  *                   compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  39  * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI
  40  *                   -XX:+UnlockDiagnosticVMOptions
  41  *                   -XX:-DebugNonSafepoints
  42  *                   -Dcompiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected=false
  43  *                   compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
  44  */
  45 
  46 package compiler.jvmci.compilerToVM;
  47 

  48 import jdk.test.lib.Asserts;
  49 import jdk.vm.ci.hotspot.CompilerToVMHelper;
  50 
  51 public class ShouldDebugNonSafepointsTest {
  52     private static final boolean EXPECTED = Boolean.getBoolean("compiler"
  53             + ".jvmci.compilerToVM.ShouldDebugNonSafepointsTest.expected");
  54 
  55     public static void main(String args[]) {
  56         new ShouldDebugNonSafepointsTest().runTest();
  57     }
  58 
  59     private void runTest() {
  60         Asserts.assertEQ(CompilerToVMHelper.shouldDebugNonSafepoints(),
  61                 EXPECTED, "Unexpected shouldDebugnonSafepoints value");
  62     }
  63 }
< prev index next >