Searched refs:MAX_ARITY (Results 1 - 6 of 6) sorted by relevance

/openjdk7/jdk/test/sun/invoke/util/
H A DValueConversionsTest.java41 * -DValueConversionsTest.MAX_ARITY=255 -DValueConversionsTest.START_ARITY=250
46 // @run junit/othervm -DValueConversionsTest.MAX_ARITY=255 -DValueConversionsTest.EXHAUSTIVE=true test.sun.invoke.util.ValueConversionsTest
54 private static final int MAX_ARITY = Integer.getInteger(CLASS.getSimpleName()+".MAX_ARITY", 40); field in class:ValueConversionsTest
277 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added
328 int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added
427 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added
/openjdk7/jdk/test/java/lang/invoke/
H A DPermuteArgsTest.java28 * @run junit/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies -ea -esa -DPermuteArgsTest.MAX_ARITY=8 test.java.lang.invoke.PermuteArgsTest
31 * java -DPermuteArgsTest.{DRY_RUN=true,MAX_ARITY=253} test.java.lang.invoke.PermuteArgsTest
32 * java -DPermuteArgsTest.{VERBOSE=true,MAX_ARITY=5} test.java.lang.invoke.PermuteArgsTest
49 private static final int MAX_ARITY = Integer.getInteger(CLASS.getSimpleName()+".MAX_ARITY", 8); field in class:PermuteArgsTest
161 // varargs case; add params up to MAX_ARITY
165 for (int arity = arity0; arity <= MAX_ARITY; arity++) {
175 arity = jump(arity, arity0*2, MAX_ARITY);
H A DRicochetTest.java28 * @run junit/othervm -DRicochetTest.MAX_ARITY=50 test.java.lang.invoke.RicochetTest
32 * @run junit/othervm -DRicochetTest.MAX_ARITY=255 test.java.lang.invoke.RicochetTest
51 private static final int MAX_ARITY = Integer.getInteger(CLASS.getSimpleName()+".MAX_ARITY", 40); field in class:RicochetTest
146 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added
175 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added
204 final int MAX = (MAX_ARITY - 2) / 2; // 253/2+1 would cause parameter overflow with 'this' added
H A DBigArityTest.java53 static final int MAX_ARITY = getProperty("MAX_ARITY", MAX_JVM_ARITY-1); // always -1 for the MH reciever itself field in class:BigArityTest
182 for (int arity = 0; arity < MAX_ARITY; arity++) {
189 int arity = MAX_ARITY;
193 assertEquals("arity=MAX_ARITY", r0, r);
210 testArities(Object[].class, SLOW_ARITY, MAX_ARITY, iterations / 1000);
223 testArities(cls, SLOW_ARITY, MAX_ARITY, iterations / 100);
/openjdk7/hotspot/src/share/vm/runtime/
H A DsharedRuntime.cpp1943 enum { MAX_ARITY = 256 }; enumerator in enum:MethodArityHistogram::__anon431
1945 static int _arity_histogram[MAX_ARITY]; // histogram of #args
1946 static int _size_histogram[MAX_ARITY]; // histogram of arg size in words
1955 arity = MIN2(arity, MAX_ARITY-1);
1956 argsize = MIN2(argsize, MAX_ARITY-1);
1993 for (int i = 0; i < MAX_ARITY; i++) _arity_histogram[i] = _size_histogram [i] = 0;
1999 int MethodArityHistogram::_arity_histogram[MethodArityHistogram::MAX_ARITY];
2000 int MethodArityHistogram::_size_histogram[MethodArityHistogram::MAX_ARITY];
/openjdk7/jdk/src/share/classes/sun/invoke/util/
H A DValueConversions.java43 private static final int MAX_ARITY; field in class:ValueConversions
49 values[0] = Integer.getInteger(THIS_CLASS.getName()+".MAX_ARITY", 255);
53 MAX_ARITY = (Integer) values[0];
951 return mhs.toArray(new MethodHandle[MAX_ARITY+1]);
1063 private static final MethodHandle[] FILL_ARRAY_TO_RIGHT = new MethodHandle[MAX_ARITY+1];
1208 return mhs.toArray(new MethodHandle[MAX_ARITY+1]);

Completed in 481 milliseconds