< prev index next >

test/runtime/valhalla/valuetypes/DeriveValueTypeCreation.java

Print this page
rev 10545 : remove -Xint from runtime tests + force TieredCompilation off
rev 10546 : runtime tests with -Xcomp


  26 import java.io.RandomAccessFile;
  27 import java.lang.reflect.Field;
  28 import java.lang.reflect.Method;
  29 import static java.lang.reflect.Modifier.*;
  30 import java.net.URL;
  31 import java.util.Enumeration;
  32 
  33 import jdk.experimental.value.ValueType;
  34 
  35 import jdk.internal.org.objectweb.asm.*;
  36 import static jdk.internal.org.objectweb.asm.Opcodes.*;
  37 
  38 import static jdk.test.lib.Asserts.*;
  39 
  40 /*
  41  * @test DeriveValueTypeCreation
  42  * @summary Derive Value Type creation test
  43  * @library /testlibrary /
  44  * @build runtime.valhalla.valuetypes.ValueCapableClass
  45  * @run main/othervm -Xint -noverify runtime.valhalla.valuetypes.DeriveValueTypeCreation

  46  */
  47 public class DeriveValueTypeCreation {
  48 
  49     public static final String VCC_CLASSNAME = "runtime.valhalla.valuetypes.ValueCapableClass";
  50 
  51     static final boolean MVT_1_0 = false; // "Some restrictions apply"
  52     static final boolean MVT_1_1 = true;  // "References support added"
  53 
  54     public static void main(String[] args) {
  55         DeriveValueTypeCreation test = new DeriveValueTypeCreation();
  56         test.run();
  57     }
  58 
  59     public void run() {
  60         loadAndRunTest();
  61         notValueCapableClasses();
  62     }
  63 
  64     void loadAndRunTest() {
  65         Class<?> clazz = null;




  26 import java.io.RandomAccessFile;
  27 import java.lang.reflect.Field;
  28 import java.lang.reflect.Method;
  29 import static java.lang.reflect.Modifier.*;
  30 import java.net.URL;
  31 import java.util.Enumeration;
  32 
  33 import jdk.experimental.value.ValueType;
  34 
  35 import jdk.internal.org.objectweb.asm.*;
  36 import static jdk.internal.org.objectweb.asm.Opcodes.*;
  37 
  38 import static jdk.test.lib.Asserts.*;
  39 
  40 /*
  41  * @test DeriveValueTypeCreation
  42  * @summary Derive Value Type creation test
  43  * @library /testlibrary /
  44  * @build runtime.valhalla.valuetypes.ValueCapableClass
  45  * @run main/othervm -Xint -noverify runtime.valhalla.valuetypes.DeriveValueTypeCreation
  46  * @run main/othervm -Xcomp -noverify runtime.valhalla.valuetypes.DeriveValueTypeCreation
  47  */
  48 public class DeriveValueTypeCreation {
  49 
  50     public static final String VCC_CLASSNAME = "runtime.valhalla.valuetypes.ValueCapableClass";
  51 
  52     static final boolean MVT_1_0 = false; // "Some restrictions apply"
  53     static final boolean MVT_1_1 = true;  // "References support added"
  54 
  55     public static void main(String[] args) {
  56         DeriveValueTypeCreation test = new DeriveValueTypeCreation();
  57         test.run();
  58     }
  59 
  60     public void run() {
  61         loadAndRunTest();
  62         notValueCapableClasses();
  63     }
  64 
  65     void loadAndRunTest() {
  66         Class<?> clazz = null;


< prev index next >