JDK-4836743 - Java Issue Tracker
Calls to the JNI function Get<type>ArrayElements() normally return a pointer to a copy of the specified array. Callers can use this pointer to access ...
Calls to the JNI function Get<type>ArrayElements() normally return a pointer to a copy of the specified array. Callers can use this pointer to access ...
The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[]. (Oddly, that is specified in toArray(T[]) which is in the wrong place.)
When allocating a Method class, also allocate the ConstMethod in a consecutive block in metaspace. This guarantees the distance from the Method to its _constMethod is never larger than 32-bits. Also, change Method::_method_counters to a 2-level index with a 16bit top and 16bit bottom.
C2 can generate out-of-bounds array loads. If executed, such a load can crash the VM, e.g. during GC, as the attached TEST.java demonstrates.The method returns a clone of the current node if it loads from the result of an Object.clone() call on an array.
A DESCRIPTION OF THE PROBLEM : When using the BeanInfo returned from java.beans.Introspector, calling getWriteMethod() on a single instance of PropertyDescriptor does not always return the same Method.