< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/ValueTypeArray.java

Print this page




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package runtime.valhalla.valuetypes;
  25 
  26 import java.util.Arrays;
  27 
  28 import static jdk.test.lib.Asserts.*;
  29 
  30 /*
  31  * @test ValueTypeArray
  32  * @summary Plain array test for Value Types
  33  * @library /test/lib
  34  * @compile -XDenableValueTypes ValueTypeArray.java Point.java Long8Value.java Person.java
  35  * @run main/othervm -Xint -XX:+ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray



  36  * @run main/othervm -Xint -XX:-ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  37  * @run main/othervm -Xcomp -XX:+ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  38  * @run main/othervm -Xcomp -XX:-ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  39  */
  40 public class ValueTypeArray {
  41     public static void main(String[] args) {
  42         ValueTypeArray valueTypeArray = new ValueTypeArray();
  43         valueTypeArray.run();
  44     }
  45 
  46     public void run() {
  47         // Class.forName does not support loading of DVT
  48         // - should call ValueType::arrayTypeClass instead?
  49         // testClassForName();
  50         testSimplePointArray();
  51         testLong8Array();
  52         // embedded oops not yet supported
  53         //testMixedPersonArray();
  54         testMultiDimPointArray();
  55         // Some design issues, ignore for now




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package runtime.valhalla.valuetypes;
  25 
  26 import java.util.Arrays;
  27 
  28 import static jdk.test.lib.Asserts.*;
  29 
  30 /*
  31  * @test ValueTypeArray
  32  * @summary Plain array test for Value Types
  33  * @library /test/lib
  34  * @compile -XDenableValueTypes ValueTypeArray.java Point.java Long8Value.java Person.java
  35  * @run main/othervm -Xint -XX:+ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  36  */
  37 
  38 /*
  39  * @run main/othervm -Xint -XX:-ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  40  * @run main/othervm -Xcomp -XX:+ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  41  * @run main/othervm -Xcomp -XX:-ValueArrayFlatten -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeArray
  42  */
  43 public class ValueTypeArray {
  44     public static void main(String[] args) {
  45         ValueTypeArray valueTypeArray = new ValueTypeArray();
  46         valueTypeArray.run();
  47     }
  48 
  49     public void run() {
  50         // Class.forName does not support loading of DVT
  51         // - should call ValueType::arrayTypeClass instead?
  52         // testClassForName();
  53         testSimplePointArray();
  54         testLong8Array();
  55         // embedded oops not yet supported
  56         //testMixedPersonArray();
  57         testMultiDimPointArray();
  58         // Some design issues, ignore for now


< prev index next >