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 compiler.valhalla.valuetypes;
25
26 import jdk.test.lib.Asserts;
27 import java.lang.reflect.Method;
28
29 /*
30 * @test
31 * @summary Test on stack replacement (OSR) with value types
32 * @library /testlibrary /test/lib /compiler/whitebox /
33 * @requires os.simpleArch == "x64"
34 * @compile TestOnStackReplacement.java
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
36 * @run main/othervm/timeout=300 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
37 * -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI
38 * compiler.valhalla.valuetypes.ValueTypeTest
39 * compiler.valhalla.valuetypes.TestOnStackReplacement
40 */
41 public class TestOnStackReplacement 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 TestOnStackReplacement test = new TestOnStackReplacement();
53 test.run(args, MyValue1.class, MyValue2.class, MyValue2Inline.class);
|
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 compiler.valhalla.valuetypes;
25
26 import jdk.test.lib.Asserts;
27 import java.lang.reflect.Method;
28
29 /*
30 * @test
31 * @summary Test on stack replacement (OSR) with value types
32 * @library /testlibrary /test/lib /compiler/whitebox /
33 * @requires (os.simpleArch == "x64" | os.simpleArch == "aarch64")
34 * @compile TestOnStackReplacement.java
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.Platform
36 * @run main/othervm/timeout=300 -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
37 * -XX:+UnlockExperimentalVMOptions -XX:+WhiteBoxAPI
38 * compiler.valhalla.valuetypes.ValueTypeTest
39 * compiler.valhalla.valuetypes.TestOnStackReplacement
40 */
41 public class TestOnStackReplacement 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 TestOnStackReplacement test = new TestOnStackReplacement();
53 test.run(args, MyValue1.class, MyValue2.class, MyValue2Inline.class);
|