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 import sun.invoke.util.Wrapper;
25 import test.java.lang.invoke.lib.CodeCacheOverflowProcessor;
26
27 import java.lang.invoke.MethodHandle;
28 import java.lang.invoke.MethodHandleHelper;
29 import java.lang.invoke.MethodType;
30 import java.util.Arrays;
31 import java.util.Collections;
32
33 /* @test
34 * @summary unit tests for varargs array methods: MethodHandleInfo.varargsArray(int),
35 * MethodHandleInfo.varargsArray(Class,int) & MethodHandleInfo.varargsList(int)
36 * @modules java.base/sun.invoke.util
37 * @library /lib/testlibrary /java/lang/invoke/common
38 * @compile/module=java.base java/lang/invoke/MethodHandleHelper.java
39 * @run main/bootclasspath VarargsArrayTest
40 * @run main/bootclasspath/othervm -DVarargsArrayTest.MAX_ARITY=255 -DVarargsArrayTest.START_ARITY=250
41 * VarargsArrayTest
42 */
43
44 /* This might take a while and burn lots of metadata:
45 * @run main/bootclasspath -DVarargsArrayTest.MAX_ARITY=255 -DVarargsArrayTest.EXHAUSTIVE=true VarargsArrayTest
46 */
47 public class VarargsArrayTest {
48 private static final Class<?> CLASS = VarargsArrayTest.class;
49 private static final int MAX_ARITY = Integer.getInteger(
50 CLASS.getSimpleName()+".MAX_ARITY", 40);
51 private static final int START_ARITY = Integer.getInteger(
52 CLASS.getSimpleName()+".START_ARITY", 0);
53 private static final boolean EXHAUSTIVE = Boolean.getBoolean(
54 CLASS.getSimpleName()+".EXHAUSTIVE");
55
56 public static void main(String[] args) throws Throwable {
57 CodeCacheOverflowProcessor.runMHTest(VarargsArrayTest::test);
|
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 import sun.invoke.util.Wrapper;
25 import test.java.lang.invoke.lib.CodeCacheOverflowProcessor;
26
27 import java.lang.invoke.MethodHandle;
28 import java.lang.invoke.MethodHandleHelper;
29 import java.lang.invoke.MethodType;
30 import java.util.Arrays;
31 import java.util.Collections;
32
33 /* @test
34 * @summary unit tests for varargs array methods: MethodHandleInfo.varargsArray(int),
35 * MethodHandleInfo.varargsArray(Class,int) & MethodHandleInfo.varargsList(int)
36 * @modules java.base/sun.invoke.util
37 * @library /test/lib /java/lang/invoke/common
38 * @compile/module=java.base java/lang/invoke/MethodHandleHelper.java
39 * @run main/bootclasspath VarargsArrayTest
40 * @run main/bootclasspath/othervm -DVarargsArrayTest.MAX_ARITY=255 -DVarargsArrayTest.START_ARITY=250
41 * VarargsArrayTest
42 */
43
44 /* This might take a while and burn lots of metadata:
45 * @run main/bootclasspath -DVarargsArrayTest.MAX_ARITY=255 -DVarargsArrayTest.EXHAUSTIVE=true VarargsArrayTest
46 */
47 public class VarargsArrayTest {
48 private static final Class<?> CLASS = VarargsArrayTest.class;
49 private static final int MAX_ARITY = Integer.getInteger(
50 CLASS.getSimpleName()+".MAX_ARITY", 40);
51 private static final int START_ARITY = Integer.getInteger(
52 CLASS.getSimpleName()+".START_ARITY", 0);
53 private static final boolean EXHAUSTIVE = Boolean.getBoolean(
54 CLASS.getSimpleName()+".EXHAUSTIVE");
55
56 public static void main(String[] args) throws Throwable {
57 CodeCacheOverflowProcessor.runMHTest(VarargsArrayTest::test);
|