author | iignatyev |
Fri, 14 Sep 2018 14:02:57 -0700 | |
changeset 51754 | 594919232b8f |
parent 47250 | a0f26f0da4f1 |
permissions | -rw-r--r-- |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1 |
/* |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
4 |
* |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
21596 | 7 |
* published by the Free Software Foundation. |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
8 |
* |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
13 |
* accompanied this code). |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
14 |
* |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
18 |
* |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
21 |
* questions. |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
22 |
*/ |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
23 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
24 |
/* @test |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
25 |
* @summary High arity invocations |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
26 |
* @compile BigArityTest.java |
14408
db08012d1d6f
7197210: java/lang/invoke/CallSiteTest.java failing on armsflt.
jiangli
parents:
14089
diff
changeset
|
27 |
* @run junit/othervm/timeout=2500 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies -esa -DBigArityTest.ITERATION_COUNT=1 test.java.lang.invoke.BigArityTest |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
28 |
*/ |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
29 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
30 |
package test.java.lang.invoke; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
31 |
|
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
32 |
import org.junit.Test; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
33 |
|
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
34 |
import java.lang.invoke.MethodHandle; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
35 |
import java.lang.invoke.MethodHandles; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
36 |
import java.lang.invoke.MethodType; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
37 |
import java.lang.invoke.WrongMethodTypeException; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
38 |
import java.util.ArrayList; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
39 |
import java.util.Arrays; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
40 |
import java.util.Collections; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
41 |
import java.util.Objects; |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
42 |
|
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
43 |
import static org.junit.Assert.assertEquals; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
44 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
45 |
public class BigArityTest { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
46 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
47 |
static MethodHandles.Lookup LOOKUP = MethodHandles.lookup(); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
48 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
49 |
static final int MAX_JVM_ARITY = 255; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
50 |
static final int ITERATION_COUNT = getProperty("ITERATION_COUNT", 40000); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
51 |
static final int MIN_ARITY = getProperty("MIN_ARITY", 250); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
52 |
static final int SLOW_ARITY = getProperty("SLOW_ARITY", MAX_JVM_ARITY-3); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
53 |
static final int MAX_ARITY = getProperty("MAX_ARITY", MAX_JVM_ARITY-1); // always -1 for the MH reciever itself |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
54 |
private static int getProperty(String name, int dflt) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
55 |
return Integer.parseInt(getProperty(name, ""+dflt)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
56 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
57 |
private static String getProperty(String name, String dflt) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
58 |
String x = System.getProperty(BigArityTest.class.getSimpleName() + "." + name); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
59 |
if (x == null) x = System.getProperty(BigArityTest.class.getName() + "." + name); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
60 |
return x == null ? dflt : x; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
61 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
62 |
|
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
63 |
static final MethodType MT_A = MethodType.methodType(Object.class, Object.class, Object[].class, Object.class); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
64 |
|
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
65 |
static Object hashArguments(Object... args) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
66 |
return Objects.hash(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
67 |
} |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
68 |
static Object hashArguments(int... args) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
69 |
Object[] wrappedArgs = new Object[args.length]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
70 |
for (int i = 0; i < args.length; i++) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
71 |
wrappedArgs[i] = args[i]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
72 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
73 |
return hashArguments(wrappedArgs); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
74 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
75 |
static Object hashArguments(long... args) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
76 |
Object[] wrappedArgs = new Object[args.length]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
77 |
for (int i = 0; i < args.length; i++) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
78 |
wrappedArgs[i] = (int) args[i]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
79 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
80 |
return hashArguments(wrappedArgs); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
81 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
82 |
|
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
83 |
static Object hashArguments1(Object o, Object... args) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
84 |
Object[] arr = new Object[args.length + 1]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
85 |
arr[0] = 0; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
86 |
System.arraycopy(args, 0, arr, 1, args.length); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
87 |
return Objects.hash(arr); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
88 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
89 |
static Object hashArguments1(int i0, int... args) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
90 |
Object[] wrappedArgs = new Object[args.length + 1]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
91 |
wrappedArgs[0] = i0; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
92 |
for (int i = 0; i < args.length; i++) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
93 |
wrappedArgs[i + 1] = args[i]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
94 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
95 |
return hashArguments(wrappedArgs); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
96 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
97 |
static Object hashArguments1(long l0, long... args) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
98 |
Object[] wrappedArgs = new Object[args.length + 1]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
99 |
wrappedArgs[0] = l0; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
100 |
for (int i = 0; i < args.length; i++) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
101 |
wrappedArgs[i + 1] = (int) args[i]; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
102 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
103 |
return hashArguments(wrappedArgs); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
104 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
105 |
|
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
106 |
static final MethodHandle MH_hashArguments_VA; |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
107 |
static final MethodHandle MH_hashArguments_IVA; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
108 |
static final MethodHandle MH_hashArguments_JVA; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
109 |
static final MethodHandle MH_hashArguments1_VA; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
110 |
static final MethodHandle MH_hashArguments1_IVA; |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
111 |
static final MethodHandle MH_hashArguments1_JVA; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
112 |
static { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
113 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
114 |
MH_hashArguments_VA = |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
115 |
MethodHandles.lookup().unreflect( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
116 |
BigArityTest.class.getDeclaredMethod("hashArguments", Object[].class)); |
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
117 |
MH_hashArguments_IVA = |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
118 |
MethodHandles.lookup().unreflect( |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
119 |
BigArityTest.class.getDeclaredMethod("hashArguments", int[].class)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
120 |
MH_hashArguments_JVA = |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
121 |
MethodHandles.lookup().unreflect( |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
122 |
BigArityTest.class.getDeclaredMethod("hashArguments", long[].class)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
123 |
MH_hashArguments1_VA = |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
124 |
MethodHandles.lookup().unreflect( |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
125 |
BigArityTest.class.getDeclaredMethod("hashArguments1", Object.class, Object[].class)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
126 |
MH_hashArguments1_IVA = |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
127 |
MethodHandles.lookup().unreflect( |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
128 |
BigArityTest.class.getDeclaredMethod("hashArguments1", int.class, int[].class)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
129 |
MH_hashArguments1_JVA = |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
130 |
MethodHandles.lookup().unreflect( |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
131 |
BigArityTest.class.getDeclaredMethod("hashArguments1", long.class, long[].class)); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
132 |
} catch (ReflectiveOperationException ex) { |
14089
0a41b980d62a
8000989: smaller code changes to make future JSR 292 backports easier
twisti
parents:
13610
diff
changeset
|
133 |
throw new Error(ex); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
134 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
135 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
136 |
static MethodHandle MH_hashArguments(int arity) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
137 |
MethodType mt = MethodType.genericMethodType(arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
138 |
return MH_hashArguments_VA.asType(mt); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
139 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
140 |
static MethodHandle MH_hashArguments(Class<? extends Object[]> arrayClass, int arity) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
141 |
if (arrayClass == Object[].class) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
142 |
return MH_hashArguments(arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
143 |
ArrayList<Class<?>> ptypes = new ArrayList<>(Collections.<Class<?>>nCopies(arity, arrayClass.getComponentType())); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
144 |
MethodType mt = MethodType.methodType(Object.class, ptypes); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
145 |
return MH_hashArguments_VA.asType(mt); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
146 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
147 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
148 |
static Object[] testArgs(int arity) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
149 |
Object args[] = new Object[arity]; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
150 |
for (int i = 0; i < arity; i++) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
151 |
args[i] = i * (i + 1) / 2; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
152 |
return args; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
153 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
154 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
155 |
@Test |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
156 |
public void asCollectorIAE01() throws ReflectiveOperationException { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
157 |
final int [] INVALID_ARRAY_LENGTHS = { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
158 |
Integer.MIN_VALUE, Integer.MIN_VALUE + 1, -2, -1, 255, 256, Integer.MAX_VALUE - 1, Integer.MAX_VALUE |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
159 |
}; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
160 |
MethodHandle target = MethodHandles.publicLookup().findStatic(Arrays.class, |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
161 |
"deepToString", MethodType.methodType(String.class, Object[].class)); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
162 |
int minbig = Integer.MAX_VALUE; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
163 |
for (int invalidLength : INVALID_ARRAY_LENGTHS) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
164 |
if (minbig > invalidLength && invalidLength > 100) minbig = invalidLength; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
165 |
try { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
166 |
target.asCollector(Object[].class, invalidLength); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
167 |
assert(false) : invalidLength; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
168 |
} catch (IllegalArgumentException ex) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
169 |
System.out.println("OK: "+ex); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
170 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
171 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
172 |
// Sizes not in the above array are good: |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
173 |
target.asCollector(Object[].class, minbig - 1); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
174 |
for (int i = 2; i <= 10; i++) |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
175 |
target.asCollector(Object[].class, minbig - i); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
176 |
} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
177 |
|
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
178 |
static void asciae02target(Object[] a, Object b) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
179 |
// naught |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
180 |
} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
181 |
|
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
182 |
@Test |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
183 |
public void asCollectorIAE02() throws ReflectiveOperationException { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
184 |
final int[] INVALID_ARRAY_LENGTHS = { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
185 |
Integer.MIN_VALUE, Integer.MIN_VALUE + 1, -2, -1, 254, 255, Integer.MAX_VALUE - 1, Integer.MAX_VALUE |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
186 |
}; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
187 |
MethodHandle target = MethodHandles.lookup().findStatic(BigArityTest.class, "asciae02target", |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
188 |
MethodType.methodType(void.class, Object[].class, Object.class)); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
189 |
int minbig = Integer.MAX_VALUE; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
190 |
for (int invalidLength : INVALID_ARRAY_LENGTHS) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
191 |
if (minbig > invalidLength && invalidLength > 100) minbig = invalidLength; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
192 |
try { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
193 |
target.asCollector(0, Object[].class, invalidLength); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
194 |
assert(false) : invalidLength; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
195 |
} catch (IllegalArgumentException ex) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
196 |
System.out.println("OK: "+ex); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
197 |
} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
198 |
} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
199 |
// Sizes not in the above array are good: |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
200 |
for (int i = 1; i <= 10; ++i) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
201 |
target.asCollector(0, Object[].class, minbig - i); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
202 |
} |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
203 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
204 |
|
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
205 |
@Test |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
206 |
public void invoker02() { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
207 |
for (int i = 0; i < 255; i++) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
208 |
MethodType mt = MethodType.genericMethodType(i); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
209 |
MethodType expMT = mt.insertParameterTypes(0, MethodHandle.class); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
210 |
if (i < 254) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
211 |
assertEquals(expMT, MethodHandles.invoker(mt).type()); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
212 |
} else { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
213 |
try { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
214 |
MethodHandles.invoker(mt); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
215 |
assert(false) : i; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
216 |
} catch (IllegalArgumentException ex) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
217 |
System.out.println("OK: "+ex); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
218 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
219 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
220 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
221 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
222 |
|
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
223 |
@Test |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
224 |
public void exactInvoker02() { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
225 |
for (int i = 0; i < 255; i++) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
226 |
MethodType mt = MethodType.genericMethodType(i); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
227 |
MethodType expMT = mt.insertParameterTypes(0, MethodHandle.class); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
228 |
if (i < 254) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
229 |
assertEquals(expMT, MethodHandles.exactInvoker(mt).type()); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
230 |
} else { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
231 |
try { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
232 |
MethodHandles.exactInvoker(mt); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
233 |
assert(false) : i; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
234 |
} catch (IllegalArgumentException ex) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
235 |
System.out.println("OK: "+ex); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
236 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
237 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
238 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
239 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
240 |
|
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
241 |
@Test |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
242 |
public void testBoundaryValues() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
243 |
for (int badArity : new int[]{ -1, MAX_JVM_ARITY+1, MAX_JVM_ARITY }) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
244 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
245 |
MethodHandle badmh = MH_hashArguments(badArity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
246 |
throw new AssertionError("should not be able to build a 255-arity MH: "+badmh); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
247 |
} catch (IllegalArgumentException | WrongMethodTypeException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
248 |
System.out.println("OK: "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
249 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
250 |
} |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
251 |
final int MAX_MH_ARITY = MAX_JVM_ARITY - 1; // mh.invoke(arg*[N]) |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
252 |
final int MAX_INVOKER_ARITY = MAX_MH_ARITY - 1; // inv.invoke(mh, arg*[N]) |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
253 |
for (int arity : new int[]{ 0, 1, MAX_MH_ARITY-2, MAX_MH_ARITY-1, MAX_MH_ARITY }) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
254 |
MethodHandle mh = MH_hashArguments(arity); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
255 |
if (arity < MAX_INVOKER_ARITY) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
256 |
MethodHandle ximh = MethodHandles.exactInvoker(mh.type()); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
257 |
MethodHandle gimh = MethodHandles.invoker(mh.type()); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
258 |
MethodHandle simh = MethodHandles.spreadInvoker(mh.type(), 0); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
259 |
if (arity != 0) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
260 |
simh = MethodHandles.spreadInvoker(mh.type(), 1); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
261 |
} else { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
262 |
try { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
263 |
simh = MethodHandles.spreadInvoker(mh.type(), 1); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
264 |
assert(false) : arity; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
265 |
} catch (IllegalArgumentException ex) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
266 |
System.out.println("OK: "+ex); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
267 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
268 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
269 |
if (arity != 0) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
270 |
simh = MethodHandles.spreadInvoker(mh.type(), arity-1); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
271 |
} else { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
272 |
try { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
273 |
simh = MethodHandles.spreadInvoker(mh.type(), arity-1); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
274 |
assert(false) : arity; |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
275 |
} catch (IllegalArgumentException ex) { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
276 |
System.out.println("OK: "+ex); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
277 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
278 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
279 |
simh = MethodHandles.spreadInvoker(mh.type(), arity); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
280 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
281 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
282 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
283 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
284 |
// Make sure the basic argument spreading and varargs mechanisms are working. |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
285 |
// Exercise arity 3 thoroughly. |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
286 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
287 |
public void testSpreads() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
288 |
System.out.println("testing asSpreader on arity=3"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
289 |
Object[] args = testArgs(3); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
290 |
int r0 = Objects.hash(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
291 |
MethodHandle mh = MH_hashArguments(3); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
292 |
Object r; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
293 |
r = mh.invokeExact(args[0], args[1], args[2]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
294 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
295 |
r = mh.invoke(args[0], args[1], args[2]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
296 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
297 |
r = mh.invoke((Comparable) args[0], (Integer) args[1], (Number) args[2]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
298 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
299 |
r = mh.invokeWithArguments(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
300 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
301 |
for (Class<?> cls0 : new Class<?>[] { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
302 |
Object[].class, Number[].class, Integer[].class, Comparable[].class |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
303 |
}) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
304 |
@SuppressWarnings("unchecked") |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
305 |
Class<? extends Object[]> cls = (Class<? extends Object[]>) cls0; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
306 |
//Class<? extends Object[]> cls = Object[].class.asSubclass(cls0); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
307 |
int nargs = args.length, skip; |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
308 |
Object hr; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
309 |
MethodHandle smh = mh.asSpreader(cls, nargs - (skip = 0)); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
310 |
MethodHandle hsmh = mh.asSpreader(0, cls, nargs - skip); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
311 |
Object[] tail = Arrays.copyOfRange(args, skip, nargs, cls); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
312 |
Object[] head = Arrays.copyOfRange(args, 0, nargs - skip, cls); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
313 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
314 |
r = smh.invokeExact(tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
315 |
hr = hsmh.invokeExact(head); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
316 |
} else if (cls == Integer[].class) { |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
317 |
r = smh.invokeExact((Integer[]) tail); //warning OK, see 8019340 |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
318 |
hr = hsmh.invokeExact((Integer[]) head); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
319 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
320 |
r = smh.invoke(tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
321 |
hr = hsmh.invoke(head); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
322 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
323 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
324 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
325 |
smh = mh.asSpreader(cls, nargs - (skip = 1)); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
326 |
hsmh = mh.asSpreader(0, cls, nargs - skip); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
327 |
tail = Arrays.copyOfRange(args, skip, nargs, cls); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
328 |
head = Arrays.copyOfRange(args, 0, nargs - skip, cls); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
329 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
330 |
r = smh.invokeExact(args[0], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
331 |
hr = hsmh.invokeExact(head, args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
332 |
} else if (cls == Integer[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
333 |
r = smh.invokeExact(args[0], (Integer[]) tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
334 |
hr = hsmh.invokeExact((Integer[]) head, args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
335 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
336 |
r = smh.invoke(args[0], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
337 |
hr = hsmh.invoke(head, args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
338 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
339 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
340 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
341 |
smh = mh.asSpreader(cls, nargs - (skip = 2)); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
342 |
hsmh = mh.asSpreader(0, cls, nargs - skip); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
343 |
tail = Arrays.copyOfRange(args, skip, nargs, cls); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
344 |
head = Arrays.copyOfRange(args, 0, nargs - skip, cls); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
345 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
346 |
r = smh.invokeExact(args[0], args[1], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
347 |
hr = hsmh.invokeExact(head, args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
348 |
} else if (cls == Integer[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
349 |
r = smh.invokeExact(args[0], args[1], (Integer[]) tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
350 |
hr = hsmh.invokeExact((Integer[]) head, args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
351 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
352 |
r = smh.invoke(args[0], args[1], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
353 |
hr = hsmh.invoke(head, args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
354 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
355 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
356 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
357 |
smh = mh.asSpreader(cls, nargs - (skip = 3)); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
358 |
hsmh = mh.asSpreader(0, cls, nargs - skip); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
359 |
tail = Arrays.copyOfRange(args, skip, nargs, cls); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
360 |
head = Arrays.copyOfRange(args, 0, nargs - skip, cls); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
361 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
362 |
r = smh.invokeExact(args[0], args[1], args[2], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
363 |
hr = hsmh.invokeExact(head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
364 |
} else if (cls == Integer[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
365 |
r = smh.invokeExact(args[0], args[1], args[2], (Integer[]) tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
366 |
hr = hsmh.invokeExact((Integer[]) head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
367 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
368 |
r = smh.invoke(args[0], args[1], args[2], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
369 |
hr = hsmh.invoke(head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
370 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
371 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
372 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
373 |
// Try null array in addition to zero-length array: |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
374 |
tail = null; |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
375 |
head = null; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
376 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
377 |
r = smh.invokeExact(args[0], args[1], args[2], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
378 |
hr = hsmh.invokeExact(head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
379 |
} else if (cls == Integer[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
380 |
r = smh.invokeExact(args[0], args[1], args[2], (Integer[]) tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
381 |
hr = hsmh.invokeExact((Integer[]) head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
382 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
383 |
r = smh.invoke(args[0], args[1], args[2], tail); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
384 |
hr = hsmh.invoke(head, args[0], args[1], args[2]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
385 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
386 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
387 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
388 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
389 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
390 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
391 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
392 |
public void testInvokeWithArguments() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
393 |
System.out.println("testing invokeWithArguments on all arities"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
394 |
for (int arity = 0; arity < MAX_ARITY; arity++) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
395 |
Object[] args = testArgs(arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
396 |
Object r0 = Objects.hash(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
397 |
Object r = MH_hashArguments(arity).invokeWithArguments(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
398 |
assertEquals("arity="+arity, r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
399 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
400 |
// The next one is the most likely to fail: |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
401 |
int arity = MAX_ARITY; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
402 |
Object[] args = testArgs(arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
403 |
Object r0 = Objects.hash(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
404 |
Object r = MH_hashArguments(arity).invokeWithArguments(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
405 |
assertEquals("arity=MAX_ARITY", r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
406 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
407 |
|
47250
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
408 |
@Test |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
409 |
public void testInvokeWithArgumentsJumbo() throws Throwable { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
410 |
System.out.println("testing invokeWithArguments on jumbo arities"); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
411 |
ArrayList<Integer> arities = new ArrayList<>(); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
412 |
for (int arity = 125; arity < 1000; arity += (arity < MAX_ARITY+10 ? 1 : arity/7)) { |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
413 |
arities.add(arity); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
414 |
Object[] args = testArgs(arity); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
415 |
Object r0 = Objects.hash(args); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
416 |
|
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
417 |
assertEquals("jumbo arity="+arity, r0, MH_hashArguments_VA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
418 |
assertEquals("jumbo arity="+arity, r0, MH_hashArguments1_VA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
419 |
|
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
420 |
// use primitive typed argument lists also: |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
421 |
assertEquals("jumbo int arity="+arity, r0, MH_hashArguments_IVA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
422 |
assertEquals("jumbo int arity="+arity, r0, MH_hashArguments1_IVA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
423 |
|
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
424 |
assertEquals("jumbo long arity="+arity, r0, MH_hashArguments_JVA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
425 |
assertEquals("jumbo long arity="+arity, r0, MH_hashArguments1_JVA.invokeWithArguments(args)); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
426 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
427 |
System.out.println(" jumbo arities = "+arities); |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
428 |
} |
a0f26f0da4f1
8185993: MethodHandle.invokeWithArguments jumbo-arity
jrose
parents:
47216
diff
changeset
|
429 |
|
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
430 |
static Object[] cat(Object a, Object[] b) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
431 |
int alen = 1, blen = b.length; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
432 |
Object[] c = new Object[alen + blen]; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
433 |
c[0] = a; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
434 |
System.arraycopy(b, 0, c, alen, blen); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
435 |
return c; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
436 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
437 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
438 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
439 |
public void testArities() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
440 |
System.out.println("testing spreaders and collectors on high arities..."); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
441 |
int iterations = ITERATION_COUNT; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
442 |
testArities(Object[].class, MIN_ARITY-10, MIN_ARITY-1, iterations / 1000); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
443 |
testArities(Object[].class, MIN_ARITY, SLOW_ARITY-1, iterations); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
444 |
testArities(Object[].class, SLOW_ARITY, MAX_ARITY, iterations / 1000); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
445 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
446 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
447 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
448 |
public void testAritiesOnTypedArrays() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
449 |
for (Class<?> cls0 : new Class<?>[] { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
450 |
Number[].class, Integer[].class, Comparable[].class |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
451 |
}) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
452 |
@SuppressWarnings("unchecked") |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
453 |
Class<? extends Object[]> cls = (Class<? extends Object[]>) cls0; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
454 |
System.out.println("array class: "+cls.getSimpleName()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
455 |
int iterations = ITERATION_COUNT / 1000; |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
456 |
try { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
457 |
testArities(cls, MIN_ARITY, SLOW_ARITY - 1, iterations); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
458 |
testArities(cls, SLOW_ARITY, MAX_ARITY, iterations / 100); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
459 |
} catch (Throwable t) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
460 |
t.printStackTrace(); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
461 |
throw t; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
462 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
463 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
464 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
465 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
466 |
private void testArities(Class<? extends Object[]> cls, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
467 |
int minArity, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
468 |
int maxArity, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
469 |
int iterations) throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
470 |
boolean verbose = (cls == Object[].class); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
471 |
for (int arity = minArity; arity <= maxArity; arity++) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
472 |
if (verbose) System.out.println("arity="+arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
473 |
MethodHandle mh = MH_hashArguments(cls, arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
474 |
MethodHandle mh_VA = mh.asSpreader(cls, arity); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
475 |
MethodHandle mh_VA_h = mh.asSpreader(0, cls, arity-1); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
476 |
assert(mh_VA.type().parameterType(0) == cls); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
477 |
assert(mh_VA_h.type().parameterType(0) == cls); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
478 |
testArities(cls, arity, iterations, verbose, mh, mh_VA, mh_VA_h); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
479 |
// mh_CA will collect arguments of a particular type and pass them to mh_VA |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
480 |
MethodHandle mh_CA = mh_VA.asCollector(cls, arity); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
481 |
MethodHandle mh_VA2 = mh_CA.asSpreader(cls, arity); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
482 |
MethodHandle mh_VA2_h = mh_CA.asSpreader(0, cls, arity-1); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
483 |
assert(mh_CA.type().equals(mh.type())); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
484 |
assert(mh_VA2.type().equals(mh_VA.type())); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
485 |
if (cls != Object[].class) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
486 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
487 |
mh_VA2.invokeWithArguments(new Object[arity]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
488 |
throw new AssertionError("should not reach"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
489 |
} catch (ClassCastException | WrongMethodTypeException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
490 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
491 |
} |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
492 |
int iterations_VA = iterations / 100; |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
493 |
testArities(cls, arity, iterations_VA, false, mh_CA, mh_VA2, mh_VA2_h); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
494 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
495 |
} |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
496 |
|
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
497 |
/** |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
498 |
* Tests calls to {@link BigArityTest#hashArguments hashArguments} as related to a single given arity N. |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
499 |
* Applies the given {@code mh} to a set of N integer arguments, checking the answer. |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
500 |
* Also applies the varargs variation {@code mh_VA} to an array of type C[] (given by {@code cls}). |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
501 |
* Test steps: |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
502 |
* <ul> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
503 |
* <li>mh_VA.invokeExact(new C[]{ arg, ... })</li> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
504 |
* <li>mh.invokeWithArguments((Object[]) new C[]{ arg, ... })</li> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
505 |
* <li>exactInvoker(mh.type()).invokeWithArguments(new Object[]{ mh, arg, ... })</li> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
506 |
* <li>invoker(mh.type()).invokeWithArguments(new Object[]{ mh, arg, ... })</li> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
507 |
* </ul> |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
508 |
* @param cls array type for varargs call (one of Object[], Number[], Integer[], Comparable[]) |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
509 |
* @param arity N, the number of arguments to {@code mh} and length of its varargs array, in [0..255] |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
510 |
* @param iterations number of times to repeat each test step (at least 4) |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
511 |
* @param verbose are we printing extra output? |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
512 |
* @param mh a fixed-arity version of {@code hashArguments} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
513 |
* @param mh_VA a variable-arity version of {@code hashArguments}, accepting the given array type {@code cls} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
514 |
* @param mh_VA_h a version of {@code hashArguments} that has a leading {@code cls} array and one final {@code cls} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
515 |
* argument |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
516 |
*/ |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
517 |
private void testArities(Class<? extends Object[]> cls, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
518 |
int arity, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
519 |
int iterations, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
520 |
boolean verbose, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
521 |
MethodHandle mh, |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
522 |
MethodHandle mh_VA, |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
523 |
MethodHandle mh_VA_h |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
524 |
) throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
525 |
if (iterations < 4) iterations = 4; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
526 |
final int MAX_MH_ARITY = MAX_JVM_ARITY - 1; // mh.invoke(arg*[N]) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
527 |
final int MAX_INVOKER_ARITY = MAX_MH_ARITY - 1; // inv.invoke(mh, arg*[N]) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
528 |
Object[] args = testArgs(arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
529 |
if (cls != Object[].class) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
530 |
args = Arrays.copyOf(args, arity, cls); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
531 |
Object r0 = Objects.hash(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
532 |
Object r; |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
533 |
Object hr; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
534 |
MethodHandle ximh = null; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
535 |
MethodHandle gimh = null; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
536 |
if (arity <= MAX_INVOKER_ARITY) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
537 |
ximh = MethodHandles.exactInvoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
538 |
gimh = MethodHandles.invoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
539 |
} else { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
540 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
541 |
ximh = MethodHandles.exactInvoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
542 |
throw new AssertionError("should fail to create ximh of arity "+arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
543 |
} catch (IllegalArgumentException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
544 |
if (verbose) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
545 |
System.out.println("OK: xmih["+arity+"] => "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
546 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
547 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
548 |
gimh = MethodHandles.invoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
549 |
throw new AssertionError("should fail to create gimh of arity "+arity); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
550 |
} catch (IllegalArgumentException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
551 |
if (verbose) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
552 |
System.out.println("OK: gmih["+arity+"] => "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
553 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
554 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
555 |
Object[] mh_args = cat(mh, args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
556 |
assert(arity <= MAX_MH_ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
557 |
for (int i = 0; i < iterations; ++i) { |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
558 |
if (cls == Object[].class) { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
559 |
r = mh_VA.invokeExact(args); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
560 |
hr = mh_VA_h.invokeExact(Arrays.copyOfRange(args, 0, arity - 1), args[arity - 1]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
561 |
} else if (cls == Integer[].class) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
562 |
r = mh_VA.invokeExact((Integer[]) args); //warning OK, see 8019340 |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
563 |
hr = mh_VA_h.invokeExact((Integer[]) Arrays.copyOfRange(args, 0, arity - 1), (Integer) args[arity - 1]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
564 |
} else { |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
565 |
r = mh_VA.invoke(args); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
566 |
hr = mh_VA_h.invoke(Arrays.copyOfRange(args, 0, arity - 1), args[arity - 1]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
567 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
568 |
assertEquals(r0, r); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
569 |
assertEquals(r0, hr); |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
570 |
r = mh.invokeWithArguments(args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
571 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
572 |
if (ximh != null) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
573 |
r = ximh.invokeWithArguments(mh_args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
574 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
575 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
576 |
if (gimh != null) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
577 |
r = gimh.invokeWithArguments(mh_args); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
578 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
579 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
580 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
581 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
582 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
583 |
static Object hashArguments_252( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
584 |
// <editor-fold defaultstate="collapsed" desc="Object x00, Object x01, Object x02, Object x03, Object x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
585 |
Object x00, Object x01, Object x02, Object x03, Object x04, Object x05, Object x06, Object x07, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
586 |
Object x08, Object x09, Object x0A, Object x0B, Object x0C, Object x0D, Object x0E, Object x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
587 |
Object x10, Object x11, Object x12, Object x13, Object x14, Object x15, Object x16, Object x17, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
588 |
Object x18, Object x19, Object x1A, Object x1B, Object x1C, Object x1D, Object x1E, Object x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
589 |
Object x20, Object x21, Object x22, Object x23, Object x24, Object x25, Object x26, Object x27, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
590 |
Object x28, Object x29, Object x2A, Object x2B, Object x2C, Object x2D, Object x2E, Object x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
591 |
Object x30, Object x31, Object x32, Object x33, Object x34, Object x35, Object x36, Object x37, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
592 |
Object x38, Object x39, Object x3A, Object x3B, Object x3C, Object x3D, Object x3E, Object x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
593 |
Object x40, Object x41, Object x42, Object x43, Object x44, Object x45, Object x46, Object x47, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
594 |
Object x48, Object x49, Object x4A, Object x4B, Object x4C, Object x4D, Object x4E, Object x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
595 |
Object x50, Object x51, Object x52, Object x53, Object x54, Object x55, Object x56, Object x57, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
596 |
Object x58, Object x59, Object x5A, Object x5B, Object x5C, Object x5D, Object x5E, Object x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
597 |
Object x60, Object x61, Object x62, Object x63, Object x64, Object x65, Object x66, Object x67, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
598 |
Object x68, Object x69, Object x6A, Object x6B, Object x6C, Object x6D, Object x6E, Object x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
599 |
Object x70, Object x71, Object x72, Object x73, Object x74, Object x75, Object x76, Object x77, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
600 |
Object x78, Object x79, Object x7A, Object x7B, Object x7C, Object x7D, Object x7E, Object x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
601 |
Object x80, Object x81, Object x82, Object x83, Object x84, Object x85, Object x86, Object x87, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
602 |
Object x88, Object x89, Object x8A, Object x8B, Object x8C, Object x8D, Object x8E, Object x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
603 |
Object x90, Object x91, Object x92, Object x93, Object x94, Object x95, Object x96, Object x97, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
604 |
Object x98, Object x99, Object x9A, Object x9B, Object x9C, Object x9D, Object x9E, Object x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
605 |
Object xA0, Object xA1, Object xA2, Object xA3, Object xA4, Object xA5, Object xA6, Object xA7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
606 |
Object xA8, Object xA9, Object xAA, Object xAB, Object xAC, Object xAD, Object xAE, Object xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
607 |
Object xB0, Object xB1, Object xB2, Object xB3, Object xB4, Object xB5, Object xB6, Object xB7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
608 |
Object xB8, Object xB9, Object xBA, Object xBB, Object xBC, Object xBD, Object xBE, Object xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
609 |
Object xC0, Object xC1, Object xC2, Object xC3, Object xC4, Object xC5, Object xC6, Object xC7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
610 |
Object xC8, Object xC9, Object xCA, Object xCB, Object xCC, Object xCD, Object xCE, Object xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
611 |
Object xD0, Object xD1, Object xD2, Object xD3, Object xD4, Object xD5, Object xD6, Object xD7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
612 |
Object xD8, Object xD9, Object xDA, Object xDB, Object xDC, Object xDD, Object xDE, Object xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
613 |
Object xE0, Object xE1, Object xE2, Object xE3, Object xE4, Object xE5, Object xE6, Object xE7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
614 |
Object xE8, Object xE9, Object xEA, Object xEB, Object xEC, Object xED, Object xEE, Object xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
615 |
Object xF0, Object xF1, Object xF2, Object xF3, Object xF4, Object xF5, Object xF6, Object xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
616 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
617 |
Object xF8, Object xF9, Object xFA, Object xFB) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
618 |
return Objects.hash( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
619 |
// <editor-fold defaultstate="collapsed" desc="x00, x01, x02, x03, x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
620 |
x00, x01, x02, x03, x04, x05, x06, x07, x08, x09, x0A, x0B, x0C, x0D, x0E, x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
621 |
x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x1A, x1B, x1C, x1D, x1E, x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
622 |
x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x2A, x2B, x2C, x2D, x2E, x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
623 |
x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x3A, x3B, x3C, x3D, x3E, x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
624 |
x40, x41, x42, x43, x44, x45, x46, x47, x48, x49, x4A, x4B, x4C, x4D, x4E, x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
625 |
x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x5A, x5B, x5C, x5D, x5E, x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
626 |
x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x6A, x6B, x6C, x6D, x6E, x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
627 |
x70, x71, x72, x73, x74, x75, x76, x77, x78, x79, x7A, x7B, x7C, x7D, x7E, x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
628 |
x80, x81, x82, x83, x84, x85, x86, x87, x88, x89, x8A, x8B, x8C, x8D, x8E, x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
629 |
x90, x91, x92, x93, x94, x95, x96, x97, x98, x99, x9A, x9B, x9C, x9D, x9E, x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
630 |
xA0, xA1, xA2, xA3, xA4, xA5, xA6, xA7, xA8, xA9, xAA, xAB, xAC, xAD, xAE, xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
631 |
xB0, xB1, xB2, xB3, xB4, xB5, xB6, xB7, xB8, xB9, xBA, xBB, xBC, xBD, xBE, xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
632 |
xC0, xC1, xC2, xC3, xC4, xC5, xC6, xC7, xC8, xC9, xCA, xCB, xCC, xCD, xCE, xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
633 |
xD0, xD1, xD2, xD3, xD4, xD5, xD6, xD7, xD8, xD9, xDA, xDB, xDC, xDD, xDE, xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
634 |
xE0, xE1, xE2, xE3, xE4, xE5, xE6, xE7, xE8, xE9, xEA, xEB, xEC, xED, xEE, xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
635 |
xF0, xF1, xF2, xF3, xF4, xF5, xF6, xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
636 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
637 |
xF8, xF9, xFA, xFB); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
638 |
} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
639 |
static Object hashArguments_252_a(Object x00, Object[] x01_FA, Object xFB) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
640 |
return Objects.hash( |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
641 |
// <editor-fold defaultstate="collapsed" desc="x00, x01_FA[0], x01_FA[1], x01_FA[2], ..."> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
642 |
x00, x01_FA[0], x01_FA[1], x01_FA[2], x01_FA[3], x01_FA[4], x01_FA[5], x01_FA[6], x01_FA[7], x01_FA[8], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
643 |
x01_FA[9], x01_FA[10], x01_FA[11], x01_FA[12], x01_FA[13], x01_FA[14], x01_FA[15], x01_FA[16], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
644 |
x01_FA[17], x01_FA[18], x01_FA[19], x01_FA[20], x01_FA[21], x01_FA[22], x01_FA[23], x01_FA[24], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
645 |
x01_FA[25], x01_FA[26], x01_FA[27], x01_FA[28], x01_FA[29], x01_FA[30], x01_FA[31], x01_FA[32], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
646 |
x01_FA[33], x01_FA[34], x01_FA[35], x01_FA[36], x01_FA[37], x01_FA[38], x01_FA[39], x01_FA[40], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
647 |
x01_FA[41], x01_FA[42], x01_FA[43], x01_FA[44], x01_FA[45], x01_FA[46], x01_FA[47], x01_FA[48], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
648 |
x01_FA[49], x01_FA[50], x01_FA[51], x01_FA[52], x01_FA[53], x01_FA[54], x01_FA[55], x01_FA[56], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
649 |
x01_FA[57], x01_FA[58], x01_FA[59], x01_FA[60], x01_FA[61], x01_FA[62], x01_FA[63], x01_FA[64], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
650 |
x01_FA[65], x01_FA[66], x01_FA[67], x01_FA[68], x01_FA[69], x01_FA[70], x01_FA[71], x01_FA[72], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
651 |
x01_FA[73], x01_FA[74], x01_FA[75], x01_FA[76], x01_FA[77], x01_FA[78], x01_FA[79], x01_FA[80], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
652 |
x01_FA[81], x01_FA[82], x01_FA[83], x01_FA[84], x01_FA[85], x01_FA[86], x01_FA[87], x01_FA[88], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
653 |
x01_FA[89], x01_FA[90], x01_FA[91], x01_FA[92], x01_FA[93], x01_FA[94], x01_FA[95], x01_FA[96], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
654 |
x01_FA[97], x01_FA[98], x01_FA[99], x01_FA[100], x01_FA[101], x01_FA[102], x01_FA[103], x01_FA[104], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
655 |
x01_FA[105], x01_FA[106], x01_FA[107], x01_FA[108], x01_FA[109], x01_FA[110], x01_FA[111], x01_FA[112], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
656 |
x01_FA[113], x01_FA[114], x01_FA[115], x01_FA[116], x01_FA[117], x01_FA[118], x01_FA[119], x01_FA[120], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
657 |
x01_FA[121], x01_FA[122], x01_FA[123], x01_FA[124], x01_FA[125], x01_FA[126], x01_FA[127], x01_FA[128], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
658 |
x01_FA[129], x01_FA[130], x01_FA[131], x01_FA[132], x01_FA[133], x01_FA[134], x01_FA[135], x01_FA[136], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
659 |
x01_FA[137], x01_FA[138], x01_FA[139], x01_FA[140], x01_FA[141], x01_FA[142], x01_FA[143], x01_FA[144], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
660 |
x01_FA[145], x01_FA[146], x01_FA[147], x01_FA[148], x01_FA[149], x01_FA[150], x01_FA[151], x01_FA[152], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
661 |
x01_FA[153], x01_FA[154], x01_FA[155], x01_FA[156], x01_FA[157], x01_FA[158], x01_FA[159], x01_FA[160], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
662 |
x01_FA[161], x01_FA[162], x01_FA[163], x01_FA[164], x01_FA[165], x01_FA[166], x01_FA[167], x01_FA[168], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
663 |
x01_FA[169], x01_FA[170], x01_FA[171], x01_FA[172], x01_FA[173], x01_FA[174], x01_FA[175], x01_FA[176], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
664 |
x01_FA[177], x01_FA[178], x01_FA[179], x01_FA[180], x01_FA[181], x01_FA[182], x01_FA[183], x01_FA[184], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
665 |
x01_FA[185], x01_FA[186], x01_FA[187], x01_FA[188], x01_FA[189], x01_FA[190], x01_FA[191], x01_FA[192], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
666 |
x01_FA[193], x01_FA[194], x01_FA[195], x01_FA[196], x01_FA[197], x01_FA[198], x01_FA[199], x01_FA[200], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
667 |
x01_FA[201], x01_FA[202], x01_FA[203], x01_FA[204], x01_FA[205], x01_FA[206], x01_FA[207], x01_FA[208], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
668 |
x01_FA[209], x01_FA[210], x01_FA[211], x01_FA[212], x01_FA[213], x01_FA[214], x01_FA[215], x01_FA[216], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
669 |
x01_FA[217], x01_FA[218], x01_FA[219], x01_FA[220], x01_FA[221], x01_FA[222], x01_FA[223], x01_FA[224], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
670 |
x01_FA[225], x01_FA[226], x01_FA[227], x01_FA[228], x01_FA[229], x01_FA[230], x01_FA[231], x01_FA[232], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
671 |
x01_FA[233], x01_FA[234], x01_FA[235], x01_FA[236], x01_FA[237], x01_FA[238], x01_FA[239], x01_FA[240], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
672 |
x01_FA[241], x01_FA[242], x01_FA[243], x01_FA[244], x01_FA[245], x01_FA[246], x01_FA[247], x01_FA[248], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
673 |
// </editor-fold> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
674 |
x01_FA[249], xFB); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
675 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
676 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
677 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
678 |
public void test252() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
679 |
final int ARITY = 252; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
680 |
System.out.println("test"+ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
681 |
Object[] a = testArgs(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
682 |
Object r0 = hashArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
683 |
Object r; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
684 |
r = hashArguments_252( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
685 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
686 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
687 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
688 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
689 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
690 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
691 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
692 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
693 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
694 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
695 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
696 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
697 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
698 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
699 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
700 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
701 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
702 |
// </editor-fold> |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
703 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); // hashArguments_252 |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
704 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
705 |
MethodType mt = MethodType.genericMethodType(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
706 |
MethodHandle mh = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY, mt); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
707 |
test252(mh, a, r0); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
708 |
MethodHandle mh_CA = MH_hashArguments_VA.asFixedArity().asCollector(Object[].class, ARITY); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
709 |
test252(mh_CA, a, r0); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
710 |
MethodHandle mh_a = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY+"_a", MT_A).asCollector(1, Object[].class, ARITY-2); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
711 |
test252(mh_a, a, r0); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
712 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
713 |
public void test252(MethodHandle mh, Object[] a, Object r0) throws Throwable { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
714 |
Object r; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
715 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
716 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
717 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
718 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
719 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
720 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
721 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
722 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
723 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
724 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
725 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
726 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
727 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
728 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
729 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
730 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
731 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
732 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
733 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
734 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
735 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
736 |
r = mh.invokeWithArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
737 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
738 |
MethodHandle ximh = MethodHandles.exactInvoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
739 |
r = ximh.invokeExact(mh, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
740 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
741 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
742 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
743 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
744 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
745 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
746 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
747 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
748 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
749 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
750 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
751 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
752 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
753 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
754 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
755 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
756 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
757 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
758 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
759 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
760 |
r = ximh.invokeWithArguments(cat(mh,a)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
761 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
762 |
MethodHandle gimh = MethodHandles.invoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
763 |
r = gimh.invoke(mh, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
764 |
// <editor-fold defaultstate="collapsed" desc="(Number) a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
765 |
(Number) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
766 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
767 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
768 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
769 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
770 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
771 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
772 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
773 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
774 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
775 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
776 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
777 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
778 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
779 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
780 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
781 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
782 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
783 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
784 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
785 |
r = gimh.invokeWithArguments(cat(mh,a)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
786 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
787 |
mh = mh.asType(mh.type().changeParameterType(0x10, Integer.class)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
788 |
//System.out.println("type="+mh.type().toString().replaceAll("Object", "")); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
789 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
790 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ... (Integer) a[0x10], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
791 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
792 |
(Integer) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
793 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
794 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
795 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
796 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
797 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
798 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
799 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
800 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
801 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
802 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
803 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
804 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
805 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
806 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
807 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
808 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
809 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
810 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
811 |
r = mh.invoke( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
812 |
// <editor-fold defaultstate="collapsed" desc="(Comparable) a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
813 |
(Comparable<?>) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
814 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
815 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
816 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
817 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
818 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
819 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
820 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
821 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
822 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
823 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
824 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
825 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
826 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
827 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
828 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
829 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
830 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
831 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
832 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
833 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
834 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
835 |
static Object hashArguments_253( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
836 |
// <editor-fold defaultstate="collapsed" desc="Object x00, Object x01, Object x02, Object x03, Object x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
837 |
Object x00, Object x01, Object x02, Object x03, Object x04, Object x05, Object x06, Object x07, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
838 |
Object x08, Object x09, Object x0A, Object x0B, Object x0C, Object x0D, Object x0E, Object x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
839 |
Object x10, Object x11, Object x12, Object x13, Object x14, Object x15, Object x16, Object x17, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
840 |
Object x18, Object x19, Object x1A, Object x1B, Object x1C, Object x1D, Object x1E, Object x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
841 |
Object x20, Object x21, Object x22, Object x23, Object x24, Object x25, Object x26, Object x27, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
842 |
Object x28, Object x29, Object x2A, Object x2B, Object x2C, Object x2D, Object x2E, Object x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
843 |
Object x30, Object x31, Object x32, Object x33, Object x34, Object x35, Object x36, Object x37, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
844 |
Object x38, Object x39, Object x3A, Object x3B, Object x3C, Object x3D, Object x3E, Object x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
845 |
Object x40, Object x41, Object x42, Object x43, Object x44, Object x45, Object x46, Object x47, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
846 |
Object x48, Object x49, Object x4A, Object x4B, Object x4C, Object x4D, Object x4E, Object x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
847 |
Object x50, Object x51, Object x52, Object x53, Object x54, Object x55, Object x56, Object x57, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
848 |
Object x58, Object x59, Object x5A, Object x5B, Object x5C, Object x5D, Object x5E, Object x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
849 |
Object x60, Object x61, Object x62, Object x63, Object x64, Object x65, Object x66, Object x67, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
850 |
Object x68, Object x69, Object x6A, Object x6B, Object x6C, Object x6D, Object x6E, Object x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
851 |
Object x70, Object x71, Object x72, Object x73, Object x74, Object x75, Object x76, Object x77, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
852 |
Object x78, Object x79, Object x7A, Object x7B, Object x7C, Object x7D, Object x7E, Object x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
853 |
Object x80, Object x81, Object x82, Object x83, Object x84, Object x85, Object x86, Object x87, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
854 |
Object x88, Object x89, Object x8A, Object x8B, Object x8C, Object x8D, Object x8E, Object x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
855 |
Object x90, Object x91, Object x92, Object x93, Object x94, Object x95, Object x96, Object x97, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
856 |
Object x98, Object x99, Object x9A, Object x9B, Object x9C, Object x9D, Object x9E, Object x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
857 |
Object xA0, Object xA1, Object xA2, Object xA3, Object xA4, Object xA5, Object xA6, Object xA7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
858 |
Object xA8, Object xA9, Object xAA, Object xAB, Object xAC, Object xAD, Object xAE, Object xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
859 |
Object xB0, Object xB1, Object xB2, Object xB3, Object xB4, Object xB5, Object xB6, Object xB7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
860 |
Object xB8, Object xB9, Object xBA, Object xBB, Object xBC, Object xBD, Object xBE, Object xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
861 |
Object xC0, Object xC1, Object xC2, Object xC3, Object xC4, Object xC5, Object xC6, Object xC7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
862 |
Object xC8, Object xC9, Object xCA, Object xCB, Object xCC, Object xCD, Object xCE, Object xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
863 |
Object xD0, Object xD1, Object xD2, Object xD3, Object xD4, Object xD5, Object xD6, Object xD7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
864 |
Object xD8, Object xD9, Object xDA, Object xDB, Object xDC, Object xDD, Object xDE, Object xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
865 |
Object xE0, Object xE1, Object xE2, Object xE3, Object xE4, Object xE5, Object xE6, Object xE7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
866 |
Object xE8, Object xE9, Object xEA, Object xEB, Object xEC, Object xED, Object xEE, Object xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
867 |
Object xF0, Object xF1, Object xF2, Object xF3, Object xF4, Object xF5, Object xF6, Object xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
868 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
869 |
Object xF8, Object xF9, Object xFA, Object xFB, Object xFC) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
870 |
return Objects.hash( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
871 |
// <editor-fold defaultstate="collapsed" desc="x00, x01, x02, x03, x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
872 |
x00, x01, x02, x03, x04, x05, x06, x07, x08, x09, x0A, x0B, x0C, x0D, x0E, x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
873 |
x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x1A, x1B, x1C, x1D, x1E, x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
874 |
x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x2A, x2B, x2C, x2D, x2E, x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
875 |
x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x3A, x3B, x3C, x3D, x3E, x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
876 |
x40, x41, x42, x43, x44, x45, x46, x47, x48, x49, x4A, x4B, x4C, x4D, x4E, x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
877 |
x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x5A, x5B, x5C, x5D, x5E, x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
878 |
x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x6A, x6B, x6C, x6D, x6E, x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
879 |
x70, x71, x72, x73, x74, x75, x76, x77, x78, x79, x7A, x7B, x7C, x7D, x7E, x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
880 |
x80, x81, x82, x83, x84, x85, x86, x87, x88, x89, x8A, x8B, x8C, x8D, x8E, x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
881 |
x90, x91, x92, x93, x94, x95, x96, x97, x98, x99, x9A, x9B, x9C, x9D, x9E, x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
882 |
xA0, xA1, xA2, xA3, xA4, xA5, xA6, xA7, xA8, xA9, xAA, xAB, xAC, xAD, xAE, xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
883 |
xB0, xB1, xB2, xB3, xB4, xB5, xB6, xB7, xB8, xB9, xBA, xBB, xBC, xBD, xBE, xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
884 |
xC0, xC1, xC2, xC3, xC4, xC5, xC6, xC7, xC8, xC9, xCA, xCB, xCC, xCD, xCE, xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
885 |
xD0, xD1, xD2, xD3, xD4, xD5, xD6, xD7, xD8, xD9, xDA, xDB, xDC, xDD, xDE, xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
886 |
xE0, xE1, xE2, xE3, xE4, xE5, xE6, xE7, xE8, xE9, xEA, xEB, xEC, xED, xEE, xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
887 |
xF0, xF1, xF2, xF3, xF4, xF5, xF6, xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
888 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
889 |
xF8, xF9, xFA, xFB, xFC); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
890 |
} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
891 |
static Object hashArguments_253_a(Object x00, Object[] x01_FB, Object xFC) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
892 |
return Objects.hash( |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
893 |
// <editor-fold defaultstate="collapsed" desc="x00, x01_FB[0], x01_FB[1], x01_FB[2], ..."> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
894 |
x00, x01_FB[0], x01_FB[1], x01_FB[2], x01_FB[3], x01_FB[4], x01_FB[5], x01_FB[6], x01_FB[7], x01_FB[8], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
895 |
x01_FB[9], x01_FB[10], x01_FB[11], x01_FB[12], x01_FB[13], x01_FB[14], x01_FB[15], x01_FB[16], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
896 |
x01_FB[17], x01_FB[18], x01_FB[19], x01_FB[20], x01_FB[21], x01_FB[22], x01_FB[23], x01_FB[24], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
897 |
x01_FB[25], x01_FB[26], x01_FB[27], x01_FB[28], x01_FB[29], x01_FB[30], x01_FB[31], x01_FB[32], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
898 |
x01_FB[33], x01_FB[34], x01_FB[35], x01_FB[36], x01_FB[37], x01_FB[38], x01_FB[39], x01_FB[40], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
899 |
x01_FB[41], x01_FB[42], x01_FB[43], x01_FB[44], x01_FB[45], x01_FB[46], x01_FB[47], x01_FB[48], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
900 |
x01_FB[49], x01_FB[50], x01_FB[51], x01_FB[52], x01_FB[53], x01_FB[54], x01_FB[55], x01_FB[56], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
901 |
x01_FB[57], x01_FB[58], x01_FB[59], x01_FB[60], x01_FB[61], x01_FB[62], x01_FB[63], x01_FB[64], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
902 |
x01_FB[65], x01_FB[66], x01_FB[67], x01_FB[68], x01_FB[69], x01_FB[70], x01_FB[71], x01_FB[72], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
903 |
x01_FB[73], x01_FB[74], x01_FB[75], x01_FB[76], x01_FB[77], x01_FB[78], x01_FB[79], x01_FB[80], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
904 |
x01_FB[81], x01_FB[82], x01_FB[83], x01_FB[84], x01_FB[85], x01_FB[86], x01_FB[87], x01_FB[88], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
905 |
x01_FB[89], x01_FB[90], x01_FB[91], x01_FB[92], x01_FB[93], x01_FB[94], x01_FB[95], x01_FB[96], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
906 |
x01_FB[97], x01_FB[98], x01_FB[99], x01_FB[100], x01_FB[101], x01_FB[102], x01_FB[103], x01_FB[104], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
907 |
x01_FB[105], x01_FB[106], x01_FB[107], x01_FB[108], x01_FB[109], x01_FB[110], x01_FB[111], x01_FB[112], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
908 |
x01_FB[113], x01_FB[114], x01_FB[115], x01_FB[116], x01_FB[117], x01_FB[118], x01_FB[119], x01_FB[120], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
909 |
x01_FB[121], x01_FB[122], x01_FB[123], x01_FB[124], x01_FB[125], x01_FB[126], x01_FB[127], x01_FB[128], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
910 |
x01_FB[129], x01_FB[130], x01_FB[131], x01_FB[132], x01_FB[133], x01_FB[134], x01_FB[135], x01_FB[136], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
911 |
x01_FB[137], x01_FB[138], x01_FB[139], x01_FB[140], x01_FB[141], x01_FB[142], x01_FB[143], x01_FB[144], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
912 |
x01_FB[145], x01_FB[146], x01_FB[147], x01_FB[148], x01_FB[149], x01_FB[150], x01_FB[151], x01_FB[152], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
913 |
x01_FB[153], x01_FB[154], x01_FB[155], x01_FB[156], x01_FB[157], x01_FB[158], x01_FB[159], x01_FB[160], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
914 |
x01_FB[161], x01_FB[162], x01_FB[163], x01_FB[164], x01_FB[165], x01_FB[166], x01_FB[167], x01_FB[168], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
915 |
x01_FB[169], x01_FB[170], x01_FB[171], x01_FB[172], x01_FB[173], x01_FB[174], x01_FB[175], x01_FB[176], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
916 |
x01_FB[177], x01_FB[178], x01_FB[179], x01_FB[180], x01_FB[181], x01_FB[182], x01_FB[183], x01_FB[184], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
917 |
x01_FB[185], x01_FB[186], x01_FB[187], x01_FB[188], x01_FB[189], x01_FB[190], x01_FB[191], x01_FB[192], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
918 |
x01_FB[193], x01_FB[194], x01_FB[195], x01_FB[196], x01_FB[197], x01_FB[198], x01_FB[199], x01_FB[200], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
919 |
x01_FB[201], x01_FB[202], x01_FB[203], x01_FB[204], x01_FB[205], x01_FB[206], x01_FB[207], x01_FB[208], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
920 |
x01_FB[209], x01_FB[210], x01_FB[211], x01_FB[212], x01_FB[213], x01_FB[214], x01_FB[215], x01_FB[216], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
921 |
x01_FB[217], x01_FB[218], x01_FB[219], x01_FB[220], x01_FB[221], x01_FB[222], x01_FB[223], x01_FB[224], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
922 |
x01_FB[225], x01_FB[226], x01_FB[227], x01_FB[228], x01_FB[229], x01_FB[230], x01_FB[231], x01_FB[232], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
923 |
x01_FB[233], x01_FB[234], x01_FB[235], x01_FB[236], x01_FB[237], x01_FB[238], x01_FB[239], x01_FB[240], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
924 |
x01_FB[241], x01_FB[242], x01_FB[243], x01_FB[244], x01_FB[245], x01_FB[246], x01_FB[247], x01_FB[248], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
925 |
// </editor-fold> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
926 |
x01_FB[249], x01_FB[250], xFC); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
927 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
928 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
929 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
930 |
public void test253() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
931 |
final int ARITY = 253; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
932 |
System.out.println("test"+ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
933 |
Object[] a = testArgs(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
934 |
Object r0 = hashArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
935 |
Object r; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
936 |
r = hashArguments_253( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
937 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
938 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
939 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
940 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
941 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
942 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
943 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
944 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
945 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
946 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
947 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
948 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
949 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
950 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
951 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
952 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
953 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
954 |
// </editor-fold> |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
955 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); // hashArguments_253 |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
956 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
957 |
MethodType mt = MethodType.genericMethodType(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
958 |
MethodHandle mh = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY, mt); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
959 |
test253(mh, a, r0); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
960 |
MethodHandle mh_CA = MH_hashArguments_VA.asFixedArity().asCollector(Object[].class, ARITY); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
961 |
test253(mh_CA, a, r0); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
962 |
MethodHandle mh_a = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY+"_a", MT_A).asCollector(1, Object[].class, ARITY-2); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
963 |
test253(mh_a, a, r0); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
964 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
965 |
public void test253(MethodHandle mh, Object[] a, Object r0) throws Throwable { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
966 |
Object r; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
967 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
968 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
969 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
970 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
971 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
972 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
973 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
974 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
975 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
976 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
977 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
978 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
979 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
980 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
981 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
982 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
983 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
984 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
985 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
986 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
987 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
988 |
r = mh.invokeWithArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
989 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
990 |
MethodHandle ximh = MethodHandles.exactInvoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
991 |
r = ximh.invokeExact(mh, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
992 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
993 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
994 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
995 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
996 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
997 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
998 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
999 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1000 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1001 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1002 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1003 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1004 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1005 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1006 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1007 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1008 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1009 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1010 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1011 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1012 |
r = ximh.invokeWithArguments(cat(mh,a)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1013 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1014 |
MethodHandle gimh = MethodHandles.invoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1015 |
r = gimh.invoke(mh, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1016 |
// <editor-fold defaultstate="collapsed" desc="(Number) a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1017 |
(Number) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1018 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1019 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1020 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1021 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1022 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1023 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1024 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1025 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1026 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1027 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1028 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1029 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1030 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1031 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1032 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1033 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1034 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1035 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1036 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1037 |
r = gimh.invokeWithArguments(cat(mh,a)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1038 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1039 |
mh = mh.asType(mh.type().changeParameterType(0x10, Integer.class)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1040 |
//System.out.println("type="+mh.type().toString().replaceAll("Object", "")); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1041 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1042 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ... (Integer) a[0x10], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1043 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1044 |
(Integer) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1045 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1046 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1047 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1048 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1049 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1050 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1051 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1052 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1053 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1054 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1055 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1056 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1057 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1058 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1059 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1060 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1061 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1062 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1063 |
r = mh.invoke( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1064 |
// <editor-fold defaultstate="collapsed" desc="(Comparable) a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1065 |
(Comparable<?>) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1066 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1067 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1068 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1069 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1070 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1071 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1072 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1073 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1074 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1075 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1076 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1077 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1078 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1079 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1080 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1081 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1082 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1083 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1084 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1085 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1086 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1087 |
static Object hashArguments_254( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1088 |
// <editor-fold defaultstate="collapsed" desc="Object x00, Object x01, Object x02, Object x03, Object x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1089 |
Object x00, Object x01, Object x02, Object x03, Object x04, Object x05, Object x06, Object x07, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1090 |
Object x08, Object x09, Object x0A, Object x0B, Object x0C, Object x0D, Object x0E, Object x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1091 |
Object x10, Object x11, Object x12, Object x13, Object x14, Object x15, Object x16, Object x17, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1092 |
Object x18, Object x19, Object x1A, Object x1B, Object x1C, Object x1D, Object x1E, Object x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1093 |
Object x20, Object x21, Object x22, Object x23, Object x24, Object x25, Object x26, Object x27, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1094 |
Object x28, Object x29, Object x2A, Object x2B, Object x2C, Object x2D, Object x2E, Object x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1095 |
Object x30, Object x31, Object x32, Object x33, Object x34, Object x35, Object x36, Object x37, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1096 |
Object x38, Object x39, Object x3A, Object x3B, Object x3C, Object x3D, Object x3E, Object x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1097 |
Object x40, Object x41, Object x42, Object x43, Object x44, Object x45, Object x46, Object x47, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1098 |
Object x48, Object x49, Object x4A, Object x4B, Object x4C, Object x4D, Object x4E, Object x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1099 |
Object x50, Object x51, Object x52, Object x53, Object x54, Object x55, Object x56, Object x57, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1100 |
Object x58, Object x59, Object x5A, Object x5B, Object x5C, Object x5D, Object x5E, Object x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1101 |
Object x60, Object x61, Object x62, Object x63, Object x64, Object x65, Object x66, Object x67, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1102 |
Object x68, Object x69, Object x6A, Object x6B, Object x6C, Object x6D, Object x6E, Object x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1103 |
Object x70, Object x71, Object x72, Object x73, Object x74, Object x75, Object x76, Object x77, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1104 |
Object x78, Object x79, Object x7A, Object x7B, Object x7C, Object x7D, Object x7E, Object x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1105 |
Object x80, Object x81, Object x82, Object x83, Object x84, Object x85, Object x86, Object x87, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1106 |
Object x88, Object x89, Object x8A, Object x8B, Object x8C, Object x8D, Object x8E, Object x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1107 |
Object x90, Object x91, Object x92, Object x93, Object x94, Object x95, Object x96, Object x97, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1108 |
Object x98, Object x99, Object x9A, Object x9B, Object x9C, Object x9D, Object x9E, Object x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1109 |
Object xA0, Object xA1, Object xA2, Object xA3, Object xA4, Object xA5, Object xA6, Object xA7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1110 |
Object xA8, Object xA9, Object xAA, Object xAB, Object xAC, Object xAD, Object xAE, Object xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1111 |
Object xB0, Object xB1, Object xB2, Object xB3, Object xB4, Object xB5, Object xB6, Object xB7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1112 |
Object xB8, Object xB9, Object xBA, Object xBB, Object xBC, Object xBD, Object xBE, Object xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1113 |
Object xC0, Object xC1, Object xC2, Object xC3, Object xC4, Object xC5, Object xC6, Object xC7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1114 |
Object xC8, Object xC9, Object xCA, Object xCB, Object xCC, Object xCD, Object xCE, Object xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1115 |
Object xD0, Object xD1, Object xD2, Object xD3, Object xD4, Object xD5, Object xD6, Object xD7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1116 |
Object xD8, Object xD9, Object xDA, Object xDB, Object xDC, Object xDD, Object xDE, Object xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1117 |
Object xE0, Object xE1, Object xE2, Object xE3, Object xE4, Object xE5, Object xE6, Object xE7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1118 |
Object xE8, Object xE9, Object xEA, Object xEB, Object xEC, Object xED, Object xEE, Object xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1119 |
Object xF0, Object xF1, Object xF2, Object xF3, Object xF4, Object xF5, Object xF6, Object xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1120 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1121 |
Object xF8, Object xF9, Object xFA, Object xFB, Object xFC, Object xFD) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1122 |
return Objects.hash( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1123 |
// <editor-fold defaultstate="collapsed" desc="x00, x01, x02, x03, x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1124 |
x00, x01, x02, x03, x04, x05, x06, x07, x08, x09, x0A, x0B, x0C, x0D, x0E, x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1125 |
x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x1A, x1B, x1C, x1D, x1E, x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1126 |
x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x2A, x2B, x2C, x2D, x2E, x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1127 |
x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x3A, x3B, x3C, x3D, x3E, x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1128 |
x40, x41, x42, x43, x44, x45, x46, x47, x48, x49, x4A, x4B, x4C, x4D, x4E, x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1129 |
x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x5A, x5B, x5C, x5D, x5E, x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1130 |
x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x6A, x6B, x6C, x6D, x6E, x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1131 |
x70, x71, x72, x73, x74, x75, x76, x77, x78, x79, x7A, x7B, x7C, x7D, x7E, x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1132 |
x80, x81, x82, x83, x84, x85, x86, x87, x88, x89, x8A, x8B, x8C, x8D, x8E, x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1133 |
x90, x91, x92, x93, x94, x95, x96, x97, x98, x99, x9A, x9B, x9C, x9D, x9E, x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1134 |
xA0, xA1, xA2, xA3, xA4, xA5, xA6, xA7, xA8, xA9, xAA, xAB, xAC, xAD, xAE, xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1135 |
xB0, xB1, xB2, xB3, xB4, xB5, xB6, xB7, xB8, xB9, xBA, xBB, xBC, xBD, xBE, xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1136 |
xC0, xC1, xC2, xC3, xC4, xC5, xC6, xC7, xC8, xC9, xCA, xCB, xCC, xCD, xCE, xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1137 |
xD0, xD1, xD2, xD3, xD4, xD5, xD6, xD7, xD8, xD9, xDA, xDB, xDC, xDD, xDE, xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1138 |
xE0, xE1, xE2, xE3, xE4, xE5, xE6, xE7, xE8, xE9, xEA, xEB, xEC, xED, xEE, xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1139 |
xF0, xF1, xF2, xF3, xF4, xF5, xF6, xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1140 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1141 |
xF8, xF9, xFA, xFB, xFC, xFD); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1142 |
} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1143 |
static Object hashArguments_254_a(Object x00, Object[] x01_FC, Object xFD) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1144 |
return Objects.hash( |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1145 |
// <editor-fold defaultstate="collapsed" desc="x00, x01_FC[0], x01_FC[1], x01_FC[2], ..."> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1146 |
x00, x01_FC[0], x01_FC[1], x01_FC[2], x01_FC[3], x01_FC[4], x01_FC[5], x01_FC[6], x01_FC[7], x01_FC[8], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1147 |
x01_FC[9], x01_FC[10], x01_FC[11], x01_FC[12], x01_FC[13], x01_FC[14], x01_FC[15], x01_FC[16], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1148 |
x01_FC[17], x01_FC[18], x01_FC[19], x01_FC[20], x01_FC[21], x01_FC[22], x01_FC[23], x01_FC[24], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1149 |
x01_FC[25], x01_FC[26], x01_FC[27], x01_FC[28], x01_FC[29], x01_FC[30], x01_FC[31], x01_FC[32], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1150 |
x01_FC[33], x01_FC[34], x01_FC[35], x01_FC[36], x01_FC[37], x01_FC[38], x01_FC[39], x01_FC[40], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1151 |
x01_FC[41], x01_FC[42], x01_FC[43], x01_FC[44], x01_FC[45], x01_FC[46], x01_FC[47], x01_FC[48], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1152 |
x01_FC[49], x01_FC[50], x01_FC[51], x01_FC[52], x01_FC[53], x01_FC[54], x01_FC[55], x01_FC[56], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1153 |
x01_FC[57], x01_FC[58], x01_FC[59], x01_FC[60], x01_FC[61], x01_FC[62], x01_FC[63], x01_FC[64], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1154 |
x01_FC[65], x01_FC[66], x01_FC[67], x01_FC[68], x01_FC[69], x01_FC[70], x01_FC[71], x01_FC[72], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1155 |
x01_FC[73], x01_FC[74], x01_FC[75], x01_FC[76], x01_FC[77], x01_FC[78], x01_FC[79], x01_FC[80], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1156 |
x01_FC[81], x01_FC[82], x01_FC[83], x01_FC[84], x01_FC[85], x01_FC[86], x01_FC[87], x01_FC[88], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1157 |
x01_FC[89], x01_FC[90], x01_FC[91], x01_FC[92], x01_FC[93], x01_FC[94], x01_FC[95], x01_FC[96], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1158 |
x01_FC[97], x01_FC[98], x01_FC[99], x01_FC[100], x01_FC[101], x01_FC[102], x01_FC[103], x01_FC[104], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1159 |
x01_FC[105], x01_FC[106], x01_FC[107], x01_FC[108], x01_FC[109], x01_FC[110], x01_FC[111], x01_FC[112], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1160 |
x01_FC[113], x01_FC[114], x01_FC[115], x01_FC[116], x01_FC[117], x01_FC[118], x01_FC[119], x01_FC[120], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1161 |
x01_FC[121], x01_FC[122], x01_FC[123], x01_FC[124], x01_FC[125], x01_FC[126], x01_FC[127], x01_FC[128], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1162 |
x01_FC[129], x01_FC[130], x01_FC[131], x01_FC[132], x01_FC[133], x01_FC[134], x01_FC[135], x01_FC[136], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1163 |
x01_FC[137], x01_FC[138], x01_FC[139], x01_FC[140], x01_FC[141], x01_FC[142], x01_FC[143], x01_FC[144], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1164 |
x01_FC[145], x01_FC[146], x01_FC[147], x01_FC[148], x01_FC[149], x01_FC[150], x01_FC[151], x01_FC[152], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1165 |
x01_FC[153], x01_FC[154], x01_FC[155], x01_FC[156], x01_FC[157], x01_FC[158], x01_FC[159], x01_FC[160], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1166 |
x01_FC[161], x01_FC[162], x01_FC[163], x01_FC[164], x01_FC[165], x01_FC[166], x01_FC[167], x01_FC[168], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1167 |
x01_FC[169], x01_FC[170], x01_FC[171], x01_FC[172], x01_FC[173], x01_FC[174], x01_FC[175], x01_FC[176], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1168 |
x01_FC[177], x01_FC[178], x01_FC[179], x01_FC[180], x01_FC[181], x01_FC[182], x01_FC[183], x01_FC[184], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1169 |
x01_FC[185], x01_FC[186], x01_FC[187], x01_FC[188], x01_FC[189], x01_FC[190], x01_FC[191], x01_FC[192], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1170 |
x01_FC[193], x01_FC[194], x01_FC[195], x01_FC[196], x01_FC[197], x01_FC[198], x01_FC[199], x01_FC[200], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1171 |
x01_FC[201], x01_FC[202], x01_FC[203], x01_FC[204], x01_FC[205], x01_FC[206], x01_FC[207], x01_FC[208], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1172 |
x01_FC[209], x01_FC[210], x01_FC[211], x01_FC[212], x01_FC[213], x01_FC[214], x01_FC[215], x01_FC[216], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1173 |
x01_FC[217], x01_FC[218], x01_FC[219], x01_FC[220], x01_FC[221], x01_FC[222], x01_FC[223], x01_FC[224], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1174 |
x01_FC[225], x01_FC[226], x01_FC[227], x01_FC[228], x01_FC[229], x01_FC[230], x01_FC[231], x01_FC[232], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1175 |
x01_FC[233], x01_FC[234], x01_FC[235], x01_FC[236], x01_FC[237], x01_FC[238], x01_FC[239], x01_FC[240], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1176 |
x01_FC[241], x01_FC[242], x01_FC[243], x01_FC[244], x01_FC[245], x01_FC[246], x01_FC[247], x01_FC[248], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1177 |
// </editor-fold> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1178 |
x01_FC[249], x01_FC[250], x01_FC[251], xFD); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1179 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1180 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1181 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1182 |
public void test254() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1183 |
final int ARITY = 254; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1184 |
System.out.println("test"+ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1185 |
Object[] a = testArgs(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1186 |
Object r0 = hashArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1187 |
Object r; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1188 |
r = hashArguments_254( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1189 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1190 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1191 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1192 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1193 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1194 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1195 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1196 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1197 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1198 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1199 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1200 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1201 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1202 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1203 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1204 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1205 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1206 |
// </editor-fold> |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1207 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD]); // hashArguments_254 |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1208 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1209 |
MethodType mt = MethodType.genericMethodType(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1210 |
MethodHandle mh = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY, mt); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1211 |
test254(mh, a, r0); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1212 |
MethodHandle mh_CA = MH_hashArguments_VA.asFixedArity().asCollector(Object[].class, ARITY); |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1213 |
test254(mh_CA, a, r0); |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1214 |
MethodHandle mh_a = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY+"_a", MT_A).asCollector(1, Object[].class, ARITY-2); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1215 |
test254(mh_a, a, r0); |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1216 |
} |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1217 |
public void test254(MethodHandle mh, Object[] a, Object r0) throws Throwable { |
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1218 |
Object r; |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1219 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1220 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1221 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1222 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1223 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1224 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1225 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1226 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1227 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1228 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1229 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1230 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1231 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1232 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1233 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1234 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1235 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1236 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1237 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1238 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1239 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1240 |
r = mh.invokeWithArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1241 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1242 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1243 |
MethodHandle ximh = MethodHandles.exactInvoker(mh.type()); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1244 |
throw new AssertionError("should have thrown IAE; cannot have 1+1+254 arguments"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1245 |
} catch (IllegalArgumentException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1246 |
System.out.println("OK: "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1247 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1248 |
mh = mh.asType(mh.type().changeParameterType(0x10, Integer.class)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1249 |
//System.out.println("type="+mh.type().toString().replaceAll("Object", "")); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1250 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1251 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ... (Integer) a[0x10], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1252 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1253 |
(Integer) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1254 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1255 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1256 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1257 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1258 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1259 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1260 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1261 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1262 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1263 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1264 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1265 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1266 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1267 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1268 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1269 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1270 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1271 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1272 |
mh = mh.asType(mh.type().changeParameterType(0xE0, Number.class)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1273 |
//System.out.println("type="+mh.type().toString().replaceAll("Object", "")); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1274 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1275 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ... (Integer) a[0x10], ... (Number) a[0xE0], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1276 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1277 |
(Integer) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1278 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1279 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1280 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1281 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1282 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1283 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1284 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1285 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1286 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1287 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1288 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1289 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1290 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1291 |
(Number) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1292 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1293 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1294 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1295 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1296 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1297 |
r = mh.invoke( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1298 |
// <editor-fold defaultstate="collapsed" desc="(Comparable) a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1299 |
(Comparable<?>) |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1300 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1301 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1302 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1303 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1304 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1305 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1306 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1307 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1308 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1309 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1310 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1311 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1312 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1313 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1314 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1315 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1316 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1317 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1318 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1319 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1320 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1321 |
static Object hashArguments_255( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1322 |
// <editor-fold defaultstate="collapsed" desc="Object x00, Object x01, Object x02, Object x03, Object x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1323 |
Object x00, Object x01, Object x02, Object x03, Object x04, Object x05, Object x06, Object x07, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1324 |
Object x08, Object x09, Object x0A, Object x0B, Object x0C, Object x0D, Object x0E, Object x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1325 |
Object x10, Object x11, Object x12, Object x13, Object x14, Object x15, Object x16, Object x17, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1326 |
Object x18, Object x19, Object x1A, Object x1B, Object x1C, Object x1D, Object x1E, Object x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1327 |
Object x20, Object x21, Object x22, Object x23, Object x24, Object x25, Object x26, Object x27, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1328 |
Object x28, Object x29, Object x2A, Object x2B, Object x2C, Object x2D, Object x2E, Object x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1329 |
Object x30, Object x31, Object x32, Object x33, Object x34, Object x35, Object x36, Object x37, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1330 |
Object x38, Object x39, Object x3A, Object x3B, Object x3C, Object x3D, Object x3E, Object x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1331 |
Object x40, Object x41, Object x42, Object x43, Object x44, Object x45, Object x46, Object x47, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1332 |
Object x48, Object x49, Object x4A, Object x4B, Object x4C, Object x4D, Object x4E, Object x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1333 |
Object x50, Object x51, Object x52, Object x53, Object x54, Object x55, Object x56, Object x57, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1334 |
Object x58, Object x59, Object x5A, Object x5B, Object x5C, Object x5D, Object x5E, Object x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1335 |
Object x60, Object x61, Object x62, Object x63, Object x64, Object x65, Object x66, Object x67, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1336 |
Object x68, Object x69, Object x6A, Object x6B, Object x6C, Object x6D, Object x6E, Object x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1337 |
Object x70, Object x71, Object x72, Object x73, Object x74, Object x75, Object x76, Object x77, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1338 |
Object x78, Object x79, Object x7A, Object x7B, Object x7C, Object x7D, Object x7E, Object x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1339 |
Object x80, Object x81, Object x82, Object x83, Object x84, Object x85, Object x86, Object x87, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1340 |
Object x88, Object x89, Object x8A, Object x8B, Object x8C, Object x8D, Object x8E, Object x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1341 |
Object x90, Object x91, Object x92, Object x93, Object x94, Object x95, Object x96, Object x97, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1342 |
Object x98, Object x99, Object x9A, Object x9B, Object x9C, Object x9D, Object x9E, Object x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1343 |
Object xA0, Object xA1, Object xA2, Object xA3, Object xA4, Object xA5, Object xA6, Object xA7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1344 |
Object xA8, Object xA9, Object xAA, Object xAB, Object xAC, Object xAD, Object xAE, Object xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1345 |
Object xB0, Object xB1, Object xB2, Object xB3, Object xB4, Object xB5, Object xB6, Object xB7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1346 |
Object xB8, Object xB9, Object xBA, Object xBB, Object xBC, Object xBD, Object xBE, Object xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1347 |
Object xC0, Object xC1, Object xC2, Object xC3, Object xC4, Object xC5, Object xC6, Object xC7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1348 |
Object xC8, Object xC9, Object xCA, Object xCB, Object xCC, Object xCD, Object xCE, Object xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1349 |
Object xD0, Object xD1, Object xD2, Object xD3, Object xD4, Object xD5, Object xD6, Object xD7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1350 |
Object xD8, Object xD9, Object xDA, Object xDB, Object xDC, Object xDD, Object xDE, Object xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1351 |
Object xE0, Object xE1, Object xE2, Object xE3, Object xE4, Object xE5, Object xE6, Object xE7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1352 |
Object xE8, Object xE9, Object xEA, Object xEB, Object xEC, Object xED, Object xEE, Object xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1353 |
Object xF0, Object xF1, Object xF2, Object xF3, Object xF4, Object xF5, Object xF6, Object xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1354 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1355 |
Object xF8, Object xF9, Object xFA, Object xFB, Object xFC, Object xFD, Object xFE) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1356 |
return Objects.hash( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1357 |
// <editor-fold defaultstate="collapsed" desc="x00, x01, x02, x03, x04, ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1358 |
x00, x01, x02, x03, x04, x05, x06, x07, x08, x09, x0A, x0B, x0C, x0D, x0E, x0F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1359 |
x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x1A, x1B, x1C, x1D, x1E, x1F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1360 |
x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x2A, x2B, x2C, x2D, x2E, x2F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1361 |
x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x3A, x3B, x3C, x3D, x3E, x3F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1362 |
x40, x41, x42, x43, x44, x45, x46, x47, x48, x49, x4A, x4B, x4C, x4D, x4E, x4F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1363 |
x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x5A, x5B, x5C, x5D, x5E, x5F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1364 |
x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x6A, x6B, x6C, x6D, x6E, x6F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1365 |
x70, x71, x72, x73, x74, x75, x76, x77, x78, x79, x7A, x7B, x7C, x7D, x7E, x7F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1366 |
x80, x81, x82, x83, x84, x85, x86, x87, x88, x89, x8A, x8B, x8C, x8D, x8E, x8F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1367 |
x90, x91, x92, x93, x94, x95, x96, x97, x98, x99, x9A, x9B, x9C, x9D, x9E, x9F, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1368 |
xA0, xA1, xA2, xA3, xA4, xA5, xA6, xA7, xA8, xA9, xAA, xAB, xAC, xAD, xAE, xAF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1369 |
xB0, xB1, xB2, xB3, xB4, xB5, xB6, xB7, xB8, xB9, xBA, xBB, xBC, xBD, xBE, xBF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1370 |
xC0, xC1, xC2, xC3, xC4, xC5, xC6, xC7, xC8, xC9, xCA, xCB, xCC, xCD, xCE, xCF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1371 |
xD0, xD1, xD2, xD3, xD4, xD5, xD6, xD7, xD8, xD9, xDA, xDB, xDC, xDD, xDE, xDF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1372 |
xE0, xE1, xE2, xE3, xE4, xE5, xE6, xE7, xE8, xE9, xEA, xEB, xEC, xED, xEE, xEF, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1373 |
xF0, xF1, xF2, xF3, xF4, xF5, xF6, xF7, |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1374 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1375 |
xF8, xF9, xFA, xFB, xFC, xFD, xFE); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1376 |
} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1377 |
static Object hashArguments_255_a(Object x00, Object[] x01_FD, Object xFE) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1378 |
return Objects.hash( |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1379 |
// <editor-fold defaultstate="collapsed" desc="x00, x01_FD[0], x01_FD[1], x01_FD[2], ..."> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1380 |
x00, x01_FD[0], x01_FD[1], x01_FD[2], x01_FD[3], x01_FD[4], x01_FD[5], x01_FD[6], x01_FD[7], x01_FD[8], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1381 |
x01_FD[9], x01_FD[10], x01_FD[11], x01_FD[12], x01_FD[13], x01_FD[14], x01_FD[15], x01_FD[16], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1382 |
x01_FD[17], x01_FD[18], x01_FD[19], x01_FD[20], x01_FD[21], x01_FD[22], x01_FD[23], x01_FD[24], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1383 |
x01_FD[25], x01_FD[26], x01_FD[27], x01_FD[28], x01_FD[29], x01_FD[30], x01_FD[31], x01_FD[32], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1384 |
x01_FD[33], x01_FD[34], x01_FD[35], x01_FD[36], x01_FD[37], x01_FD[38], x01_FD[39], x01_FD[40], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1385 |
x01_FD[41], x01_FD[42], x01_FD[43], x01_FD[44], x01_FD[45], x01_FD[46], x01_FD[47], x01_FD[48], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1386 |
x01_FD[49], x01_FD[50], x01_FD[51], x01_FD[52], x01_FD[53], x01_FD[54], x01_FD[55], x01_FD[56], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1387 |
x01_FD[57], x01_FD[58], x01_FD[59], x01_FD[60], x01_FD[61], x01_FD[62], x01_FD[63], x01_FD[64], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1388 |
x01_FD[65], x01_FD[66], x01_FD[67], x01_FD[68], x01_FD[69], x01_FD[70], x01_FD[71], x01_FD[72], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1389 |
x01_FD[73], x01_FD[74], x01_FD[75], x01_FD[76], x01_FD[77], x01_FD[78], x01_FD[79], x01_FD[80], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1390 |
x01_FD[81], x01_FD[82], x01_FD[83], x01_FD[84], x01_FD[85], x01_FD[86], x01_FD[87], x01_FD[88], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1391 |
x01_FD[89], x01_FD[90], x01_FD[91], x01_FD[92], x01_FD[93], x01_FD[94], x01_FD[95], x01_FD[96], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1392 |
x01_FD[97], x01_FD[98], x01_FD[99], x01_FD[100], x01_FD[101], x01_FD[102], x01_FD[103], x01_FD[104], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1393 |
x01_FD[105], x01_FD[106], x01_FD[107], x01_FD[108], x01_FD[109], x01_FD[110], x01_FD[111], x01_FD[112], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1394 |
x01_FD[113], x01_FD[114], x01_FD[115], x01_FD[116], x01_FD[117], x01_FD[118], x01_FD[119], x01_FD[120], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1395 |
x01_FD[121], x01_FD[122], x01_FD[123], x01_FD[124], x01_FD[125], x01_FD[126], x01_FD[127], x01_FD[128], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1396 |
x01_FD[129], x01_FD[130], x01_FD[131], x01_FD[132], x01_FD[133], x01_FD[134], x01_FD[135], x01_FD[136], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1397 |
x01_FD[137], x01_FD[138], x01_FD[139], x01_FD[140], x01_FD[141], x01_FD[142], x01_FD[143], x01_FD[144], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1398 |
x01_FD[145], x01_FD[146], x01_FD[147], x01_FD[148], x01_FD[149], x01_FD[150], x01_FD[151], x01_FD[152], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1399 |
x01_FD[153], x01_FD[154], x01_FD[155], x01_FD[156], x01_FD[157], x01_FD[158], x01_FD[159], x01_FD[160], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1400 |
x01_FD[161], x01_FD[162], x01_FD[163], x01_FD[164], x01_FD[165], x01_FD[166], x01_FD[167], x01_FD[168], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1401 |
x01_FD[169], x01_FD[170], x01_FD[171], x01_FD[172], x01_FD[173], x01_FD[174], x01_FD[175], x01_FD[176], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1402 |
x01_FD[177], x01_FD[178], x01_FD[179], x01_FD[180], x01_FD[181], x01_FD[182], x01_FD[183], x01_FD[184], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1403 |
x01_FD[185], x01_FD[186], x01_FD[187], x01_FD[188], x01_FD[189], x01_FD[190], x01_FD[191], x01_FD[192], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1404 |
x01_FD[193], x01_FD[194], x01_FD[195], x01_FD[196], x01_FD[197], x01_FD[198], x01_FD[199], x01_FD[200], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1405 |
x01_FD[201], x01_FD[202], x01_FD[203], x01_FD[204], x01_FD[205], x01_FD[206], x01_FD[207], x01_FD[208], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1406 |
x01_FD[209], x01_FD[210], x01_FD[211], x01_FD[212], x01_FD[213], x01_FD[214], x01_FD[215], x01_FD[216], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1407 |
x01_FD[217], x01_FD[218], x01_FD[219], x01_FD[220], x01_FD[221], x01_FD[222], x01_FD[223], x01_FD[224], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1408 |
x01_FD[225], x01_FD[226], x01_FD[227], x01_FD[228], x01_FD[229], x01_FD[230], x01_FD[231], x01_FD[232], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1409 |
x01_FD[233], x01_FD[234], x01_FD[235], x01_FD[236], x01_FD[237], x01_FD[238], x01_FD[239], x01_FD[240], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1410 |
x01_FD[241], x01_FD[242], x01_FD[243], x01_FD[244], x01_FD[245], x01_FD[246], x01_FD[247], x01_FD[248], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1411 |
// </editor-fold> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1412 |
x01_FD[249], x01_FD[250], x01_FD[251], x01_FD[252], xFE); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1413 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1414 |
|
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1415 |
@Test |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1416 |
public void test255() throws Throwable { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1417 |
final int ARITY = 255; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1418 |
System.out.println("test"+ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1419 |
Object[] a = testArgs(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1420 |
Object r0 = hashArguments(a); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1421 |
Object r; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1422 |
r = hashArguments_255( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1423 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1424 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1425 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1426 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1427 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1428 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1429 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1430 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1431 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1432 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1433 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1434 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1435 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1436 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1437 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1438 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1439 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1440 |
// </editor-fold> |
20529
b49b07206f7d
8019417: JSR 292 javadoc should clarify method handle arity limits
jrose
parents:
14408
diff
changeset
|
1441 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD], a[0xFE]); // hashArguments_255 |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1442 |
assertEquals(r0, r); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1443 |
MethodType mt = MethodType.genericMethodType(ARITY); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1444 |
MethodHandle mh; |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1445 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1446 |
mh = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY, mt); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1447 |
throw new AssertionError("should not create an arity 255 method handle"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1448 |
} catch (IllegalArgumentException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1449 |
System.out.println("OK: "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1450 |
mh = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+(ARITY-1), mt.dropParameterTypes(ARITY-1, ARITY)); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1451 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1452 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1453 |
r = mh.invokeExact( |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1454 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1455 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1456 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1457 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1458 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1459 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1460 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1461 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1462 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1463 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1464 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1465 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1466 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1467 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1468 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1469 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1470 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1471 |
// </editor-fold> |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1472 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD], a[0xFE]); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1473 |
throw new AssertionError("should not call an arity 255 method handle"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1474 |
} catch (LinkageError ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1475 |
System.out.println("OK: "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1476 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1477 |
try { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1478 |
MethodHandle ximh = MethodHandles.exactInvoker(mt); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1479 |
throw new AssertionError("should have thrown IAE; cannot have 1+1+255 arguments"); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1480 |
} catch (IllegalArgumentException ex) { |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1481 |
System.out.println("OK: "+ex); |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1482 |
} |
33874
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1483 |
MethodHandle mh_a; |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1484 |
try { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1485 |
mh_a = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY+"_a", MT_A).asCollector(1, Object[].class, ARITY-2); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1486 |
throw new AssertionError("should not create an arity 255 collector method handle"); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1487 |
} catch (IllegalArgumentException ex) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1488 |
System.out.println("OK: "+ex); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1489 |
mh_a = MethodHandles.lookup().findStatic(BigArityTest.class, "hashArguments_"+ARITY+"_a", MT_A).asCollector(1, Object[].class, ARITY-3); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1490 |
} |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1491 |
try { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1492 |
r = mh_a.invokeExact( |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1493 |
// <editor-fold defaultstate="collapsed" desc="a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], ..."> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1494 |
a[0x00], a[0x01], a[0x02], a[0x03], a[0x04], a[0x05], a[0x06], a[0x07], a[0x08], a[0x09], a[0x0A], a[0x0B], a[0x0C], a[0x0D], a[0x0E], a[0x0F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1495 |
a[0x10], a[0x11], a[0x12], a[0x13], a[0x14], a[0x15], a[0x16], a[0x17], a[0x18], a[0x19], a[0x1A], a[0x1B], a[0x1C], a[0x1D], a[0x1E], a[0x1F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1496 |
a[0x20], a[0x21], a[0x22], a[0x23], a[0x24], a[0x25], a[0x26], a[0x27], a[0x28], a[0x29], a[0x2A], a[0x2B], a[0x2C], a[0x2D], a[0x2E], a[0x2F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1497 |
a[0x30], a[0x31], a[0x32], a[0x33], a[0x34], a[0x35], a[0x36], a[0x37], a[0x38], a[0x39], a[0x3A], a[0x3B], a[0x3C], a[0x3D], a[0x3E], a[0x3F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1498 |
a[0x40], a[0x41], a[0x42], a[0x43], a[0x44], a[0x45], a[0x46], a[0x47], a[0x48], a[0x49], a[0x4A], a[0x4B], a[0x4C], a[0x4D], a[0x4E], a[0x4F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1499 |
a[0x50], a[0x51], a[0x52], a[0x53], a[0x54], a[0x55], a[0x56], a[0x57], a[0x58], a[0x59], a[0x5A], a[0x5B], a[0x5C], a[0x5D], a[0x5E], a[0x5F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1500 |
a[0x60], a[0x61], a[0x62], a[0x63], a[0x64], a[0x65], a[0x66], a[0x67], a[0x68], a[0x69], a[0x6A], a[0x6B], a[0x6C], a[0x6D], a[0x6E], a[0x6F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1501 |
a[0x70], a[0x71], a[0x72], a[0x73], a[0x74], a[0x75], a[0x76], a[0x77], a[0x78], a[0x79], a[0x7A], a[0x7B], a[0x7C], a[0x7D], a[0x7E], a[0x7F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1502 |
a[0x80], a[0x81], a[0x82], a[0x83], a[0x84], a[0x85], a[0x86], a[0x87], a[0x88], a[0x89], a[0x8A], a[0x8B], a[0x8C], a[0x8D], a[0x8E], a[0x8F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1503 |
a[0x90], a[0x91], a[0x92], a[0x93], a[0x94], a[0x95], a[0x96], a[0x97], a[0x98], a[0x99], a[0x9A], a[0x9B], a[0x9C], a[0x9D], a[0x9E], a[0x9F], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1504 |
a[0xA0], a[0xA1], a[0xA2], a[0xA3], a[0xA4], a[0xA5], a[0xA6], a[0xA7], a[0xA8], a[0xA9], a[0xAA], a[0xAB], a[0xAC], a[0xAD], a[0xAE], a[0xAF], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1505 |
a[0xB0], a[0xB1], a[0xB2], a[0xB3], a[0xB4], a[0xB5], a[0xB6], a[0xB7], a[0xB8], a[0xB9], a[0xBA], a[0xBB], a[0xBC], a[0xBD], a[0xBE], a[0xBF], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1506 |
a[0xC0], a[0xC1], a[0xC2], a[0xC3], a[0xC4], a[0xC5], a[0xC6], a[0xC7], a[0xC8], a[0xC9], a[0xCA], a[0xCB], a[0xCC], a[0xCD], a[0xCE], a[0xCF], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1507 |
a[0xD0], a[0xD1], a[0xD2], a[0xD3], a[0xD4], a[0xD5], a[0xD6], a[0xD7], a[0xD8], a[0xD9], a[0xDA], a[0xDB], a[0xDC], a[0xDD], a[0xDE], a[0xDF], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1508 |
a[0xE0], a[0xE1], a[0xE2], a[0xE3], a[0xE4], a[0xE5], a[0xE6], a[0xE7], a[0xE8], a[0xE9], a[0xEA], a[0xEB], a[0xEC], a[0xED], a[0xEE], a[0xEF], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1509 |
a[0xF0], a[0xF1], a[0xF2], a[0xF3], a[0xF4], a[0xF5], a[0xF6], a[0xF7], |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1510 |
// </editor-fold> |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1511 |
a[0xF8], a[0xF9], a[0xFA], a[0xFB], a[0xFC], a[0xFD], a[0xFE]); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1512 |
throw new AssertionError("should not call an arity 255 collector method handle"); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1513 |
} catch (LinkageError ex) { |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1514 |
System.out.println("OK: "+ex); |
46651fd30c0b
8139885: implement JEP 274: enhanced method handles
mhaupt
parents:
23010
diff
changeset
|
1515 |
} |
13610
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1516 |
} |
28122b96858e
7191102: nightly failures after JSR 292 lazy method handle update (round 3)
jrose
parents:
diff
changeset
|
1517 |
} |