< prev index next >

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

Print this page




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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 package runtime.valhalla.valuetypes;
  24 
  25 import jdk.test.lib.Asserts;
  26 
  27 /*
  28  * @test ValueTypeGetField
  29  * @summary Value Type get field test
  30  * @library /test/lib
  31  * @compile -XDenableValueTypes Point.java ValueTypeGetField.java
  32  * @run main/othervm -Xint -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeGetField



  33  * @run main/othervm -Xcomp -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeGetField
  34  */
  35 public class ValueTypeGetField {
  36 
  37     static Point staticPoint0;
  38     static Point staticPoint1;
  39     Point instancePoint0;
  40     Point instancePoint1;
  41 
  42     static {
  43         staticPoint0 = Point.createPoint(358, 406);
  44         staticPoint1 = Point.createPoint(101, 2653);
  45     }
  46 
  47     ValueTypeGetField() {
  48         instancePoint0 = Point.createPoint(1890, 1918);
  49         instancePoint1 = Point.createPoint(91, 102);
  50     }
  51 
  52     public static void main(String[] args) {




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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 package runtime.valhalla.valuetypes;
  24 
  25 import jdk.test.lib.Asserts;
  26 
  27 /*
  28  * @test ValueTypeGetField
  29  * @summary Value Type get field test
  30  * @library /test/lib
  31  * @compile -XDenableValueTypes Point.java ValueTypeGetField.java
  32  * @run main/othervm -Xint -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeGetField
  33  */
  34 
  35 /*
  36  * @run main/othervm -Xcomp -XX:+EnableValhalla runtime.valhalla.valuetypes.ValueTypeGetField
  37  */
  38 public class ValueTypeGetField {
  39 
  40     static Point staticPoint0;
  41     static Point staticPoint1;
  42     Point instancePoint0;
  43     Point instancePoint1;
  44 
  45     static {
  46         staticPoint0 = Point.createPoint(358, 406);
  47         staticPoint1 = Point.createPoint(101, 2653);
  48     }
  49 
  50     ValueTypeGetField() {
  51         instancePoint0 = Point.createPoint(1890, 1918);
  52         instancePoint1 = Point.createPoint(91, 102);
  53     }
  54 
  55     public static void main(String[] args) {


< prev index next >