< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestLWorld.java

Print this page
rev 54670 : Port of valuetypes to aarch64


  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 compiler.valhalla.valuetypes;
  25 
  26 import java.lang.invoke.*;
  27 import java.lang.reflect.Method;
  28 
  29 import jdk.experimental.value.MethodHandleBuilder;
  30 import jdk.test.lib.Asserts;
  31 
  32 /*
  33  * @test
  34  * @summary Test value types in LWorld.
  35  * @modules java.base/jdk.experimental.value
  36  * @library /testlibrary /test/lib /compiler/whitebox /
  37  * @requires os.simpleArch == "x64"
  38  * @compile -XDallowWithFieldOperator TestLWorld.java
  39  * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
  40  * @run main/othervm/timeout=120 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
  41  *                               -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI -XX:+EnableValhalla
  42  *                               compiler.valhalla.valuetypes.ValueTypeTest
  43  *                               compiler.valhalla.valuetypes.TestLWorld
  44  */
  45 public class TestLWorld extends ValueTypeTest {
  46     public int getNumScenarios() {
  47         if (TEST_C1) {
  48             return 2;
  49         } else {
  50             return super.getNumScenarios();
  51         }
  52     }
  53 
  54     // Extra VM parameters for some test scenarios. See ValueTypeTest.getVMParameters()
  55     @Override
  56     public String[] getExtraVMParameters(int scenario) {
  57         if (TEST_C1) {




  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 compiler.valhalla.valuetypes;
  25 
  26 import java.lang.invoke.*;
  27 import java.lang.reflect.Method;
  28 
  29 import jdk.experimental.value.MethodHandleBuilder;
  30 import jdk.test.lib.Asserts;
  31 
  32 /*
  33  * @test
  34  * @summary Test value types in LWorld.
  35  * @modules java.base/jdk.experimental.value
  36  * @library /testlibrary /test/lib /compiler/whitebox /

  37  * @compile -XDallowWithFieldOperator TestLWorld.java
  38  * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
  39  * @run main/othervm/timeout=120 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
  40  *                               -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI -XX:+EnableValhalla
  41  *                               compiler.valhalla.valuetypes.ValueTypeTest
  42  *                               compiler.valhalla.valuetypes.TestLWorld
  43  */
  44 public class TestLWorld extends ValueTypeTest {
  45     public int getNumScenarios() {
  46         if (TEST_C1) {
  47             return 2;
  48         } else {
  49             return super.getNumScenarios();
  50         }
  51     }
  52 
  53     // Extra VM parameters for some test scenarios. See ValueTypeTest.getVMParameters()
  54     @Override
  55     public String[] getExtraVMParameters(int scenario) {
  56         if (TEST_C1) {


< prev index next >