-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8u251, 9, 10, 11, 12
-
x86_64
-
windows_10
A DESCRIPTION OF THE PROBLEM :
Creating a MethodHandle linking to java.lang.Object.hashCode() and invoking it more than about 12000 times in a row causes the JVM to crash. Seems to work fine on Java SE 14.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The issue can be reproduced by running the attached code.
---------- BEGIN SOURCE ----------
MethodHandle hashCode =
MethodHandles.lookup().findVirtual(Object.class, "hashCode", MethodType.methodType(int.class));
for (int i = 0; i < 100000; i++)
hashCode.invoke(new String());
---------- END SOURCE ----------
FREQUENCY : always
Creating a MethodHandle linking to java.lang.Object.hashCode() and invoking it more than about 12000 times in a row causes the JVM to crash. Seems to work fine on Java SE 14.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The issue can be reproduced by running the attached code.
---------- BEGIN SOURCE ----------
MethodHandle hashCode =
MethodHandles.lookup().findVirtual(Object.class, "hashCode", MethodType.methodType(int.class));
for (int i = 0; i < 100000; i++)
hashCode.invoke(new String());
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8217760 C2: Missing symbolic info on a call from intrinsics when invoked through MethodHandle
- Closed