< prev index next >

test/runtime/valhalla/valuetypes/VDefaultTest.java

Print this page
rev 10541 : remove -Xint from runtime tests + force TieredCompilation off


  12  * version 2 for more details (a copy is included in the LICENSE file that
  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 
  24 package runtime.valhalla.valuetypes;
  25 
  26 import jdk.test.lib.Asserts;
  27 
  28 /*
  29  * @test VDefaultTest
  30  * @summary vdefault bytecode test
  31  * @library /testlibrary /
  32  * @run main/othervm -noverify -Xint runtime.valhalla.valuetypes.VDefaultTest
  33  */
  34 
  35 public class VDefaultTest {
  36 
  37     static __ByValue final class Point {
  38         final int x;
  39         final int y;
  40 
  41         __ValueFactory static Point make() {
  42             Point p = __MakeDefault Point();
  43             return p;
  44         }
  45         
  46         Point() {
  47             x = 0;
  48             y = 0;
  49         }
  50     }
  51 
  52     static __ByValue final class Value {




  12  * version 2 for more details (a copy is included in the LICENSE file that
  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 
  24 package runtime.valhalla.valuetypes;
  25 
  26 import jdk.test.lib.Asserts;
  27 
  28 /*
  29  * @test VDefaultTest
  30  * @summary vdefault bytecode test
  31  * @library /testlibrary /
  32  * @run main/othervm -noverify runtime.valhalla.valuetypes.VDefaultTest
  33  */
  34 
  35 public class VDefaultTest {
  36 
  37     static __ByValue final class Point {
  38         final int x;
  39         final int y;
  40 
  41         __ValueFactory static Point make() {
  42             Point p = __MakeDefault Point();
  43             return p;
  44         }
  45         
  46         Point() {
  47             x = 0;
  48             y = 0;
  49         }
  50     }
  51 
  52     static __ByValue final class Value {


< prev index next >