RFR (XXS): 8017571: JSR292: JVM crashing on assert "cast to instanceKlass" while producing MethodHandle for array methods with MethodHandle.findVirtual

Christian Thalinger christian.thalinger at oracle.com
Tue Jun 25 18:03:52 PDT 2013


http://cr.openjdk.java.net/~twisti/8017571/webrev/

8017571: JSR292: JVM crashing on assert "cast to instanceKlass" while producing MethodHandle for array methods with MethodHandle.findVirtual
Reviewed-by:

Verification code in MHN_resolve_Mem calls Reflection::verify_class_access with MemberName.clazz as new_class.  If the class happens to be an array class we hit an assert.

The fix is to check for array types and use the bottom type for these.

src/share/vm/prims/methodHandles.cpp



More information about the hotspot-compiler-dev mailing list