< prev index next >

test/compiler/jvmci/JVM_GetJVMCIRuntimeTest.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


  35  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  36  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  37  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false
  38  *      -XX:-EnableJVMCI
  39  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  40  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  41  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true
  42  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true
  43  *      -XX:+EnableJVMCI
  44  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  45  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  46  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false
  47  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true
  48  *      -XX:-EnableJVMCI
  49  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  50 
  51  */
  52 
  53 package compiler.jvmci;
  54 
  55 import jdk.vm.ci.runtime.JVMCI;
  56 import jdk.test.lib.Asserts;

  57 
  58 public class JVM_GetJVMCIRuntimeTest implements Runnable {
  59     private static final boolean IS_POSITIVE = Boolean.getBoolean(
  60             "compiler.jvmci.JVM_GetJVMCIRuntimeTest.positive");
  61     private static final boolean IN_THREAD = Boolean.getBoolean(
  62             "compiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded");
  63 
  64     public static void main(String[] args) throws Throwable {
  65         JVM_GetJVMCIRuntimeTest instance = new JVM_GetJVMCIRuntimeTest();
  66         if (IN_THREAD) {
  67             Thread t = new Thread(instance);
  68             t.start();
  69             t.join();
  70         } else {
  71             instance.run();
  72         }
  73     }
  74 
  75     public void run() {
  76         Object result;


  35  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  36  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  37  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false
  38  *      -XX:-EnableJVMCI
  39  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  40  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  41  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true
  42  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true
  43  *      -XX:+EnableJVMCI
  44  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  45  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  46  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=false
  47  *      -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded=true
  48  *      -XX:-EnableJVMCI
  49  *      compiler.jvmci.JVM_GetJVMCIRuntimeTest
  50 
  51  */
  52 
  53 package compiler.jvmci;
  54 

  55 import jdk.test.lib.Asserts;
  56 import jdk.vm.ci.runtime.JVMCI;
  57 
  58 public class JVM_GetJVMCIRuntimeTest implements Runnable {
  59     private static final boolean IS_POSITIVE = Boolean.getBoolean(
  60             "compiler.jvmci.JVM_GetJVMCIRuntimeTest.positive");
  61     private static final boolean IN_THREAD = Boolean.getBoolean(
  62             "compiler.jvmci.JVM_GetJVMCIRuntimeTest.threaded");
  63 
  64     public static void main(String[] args) throws Throwable {
  65         JVM_GetJVMCIRuntimeTest instance = new JVM_GetJVMCIRuntimeTest();
  66         if (IN_THREAD) {
  67             Thread t = new Thread(instance);
  68             t.start();
  69             t.join();
  70         } else {
  71             instance.run();
  72         }
  73     }
  74 
  75     public void run() {
  76         Object result;
< prev index next >