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 compiler.valhalla.valuetypes;
25
26 import jdk.test.lib.Asserts;
27
28 import java.lang.reflect.Method;
29
30 /*
31 * @test
32 * @summary Test value type calling convention optimizations
33 * @library /testlibrary /test/lib /compiler/whitebox /
34 * @requires os.simpleArch == "x64"
35 * @compile -XDallowWithFieldOperator TestCallingConvention.java
36 * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
37 * @run main/othervm/timeout=120 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
38 * -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI -XX:+EnableValhalla
39 * compiler.valhalla.valuetypes.ValueTypeTest
40 * compiler.valhalla.valuetypes.TestCallingConvention
41 */
42 public class TestCallingConvention extends ValueTypeTest {
43 // Extra VM parameters for some test scenarios. See ValueTypeTest.getVMParameters()
44 @Override
45 public String[] getExtraVMParameters(int scenario) {
46 switch (scenario) {
47 case 3: return new String[] {"-XX:ValueArrayElemMaxFlatSize=0"};
48 }
49 return null;
50 }
51
52 public static void main(String[] args) throws Throwable {
53 TestCallingConvention test = new TestCallingConvention();
54 test.run(args, MyValue1.class, MyValue2.class, MyValue2Inline.class, MyValue4.class, Test27Value1.class, Test27Value2.class, Test27Value3.class);
|
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 compiler.valhalla.valuetypes;
25
26 import jdk.test.lib.Asserts;
27
28 import java.lang.reflect.Method;
29
30 /*
31 * @test
32 * @summary Test value type calling convention optimizations
33 * @library /testlibrary /test/lib /compiler/whitebox /
34 * @compile -XDallowWithFieldOperator TestCallingConvention.java
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
36 * @run main/othervm/timeout=120 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
37 * -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI -XX:+EnableValhalla
38 * compiler.valhalla.valuetypes.ValueTypeTest
39 * compiler.valhalla.valuetypes.TestCallingConvention
40 */
41 public class TestCallingConvention extends ValueTypeTest {
42 // Extra VM parameters for some test scenarios. See ValueTypeTest.getVMParameters()
43 @Override
44 public String[] getExtraVMParameters(int scenario) {
45 switch (scenario) {
46 case 3: return new String[] {"-XX:ValueArrayElemMaxFlatSize=0"};
47 }
48 return null;
49 }
50
51 public static void main(String[] args) throws Throwable {
52 TestCallingConvention test = new TestCallingConvention();
53 test.run(args, MyValue1.class, MyValue2.class, MyValue2Inline.class, MyValue4.class, Test27Value1.class, Test27Value2.class, Test27Value3.class);
|