You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice phosphor crashes when executing the following code
public static void main(String[] args) throws Throwable {
int[] a = new int[] {1, 2, 4, 5, 6, 7, 8, 10};
int[] b = new int[] {1, 2, 4, 5, 6, 7, 8, 10};
for (int i = 0; i < 1000; i++) {
Method m = Arrays.class.getMethod("equals", int[].class, int[].class);
if ((Boolean) (m.invoke(null, a, b))) {
System.out.println("true");
} else {
System.out.println("false");
}
}
}
and the trace
Exception in thread "main" java.lang.IllegalArgumentException: java.lang.ClassCastException@387c703b
at java.base/jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at java.base/jdk.internal.reflect.MethodAccessorImpl.invoke(MethodAccessorImpl.java)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
I didn't look into this issue because I managed to workaround this by adding the flag -Dsun.reflect.inflationThreshold=99999 which prevents JDK from generating method accessors.
The text was updated successfully, but these errors were encountered:
I notice phosphor crashes when executing the following code
and the trace
I didn't look into this issue because I managed to workaround this by adding the flag
-Dsun.reflect.inflationThreshold=99999
which prevents JDK from generating method accessors.The text was updated successfully, but these errors were encountered: