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