--- a/jdk/src/java.base/share/classes/java/lang/reflect/Array.java Thu Jul 02 17:50:25 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/reflect/Array.java Fri Jul 03 07:23:45 2015 +0200
@@ -25,6 +25,8 @@
package java.lang.reflect;
+import jdk.internal.HotSpotIntrinsicCandidate;
+
/**
* The {@code Array} class provides static methods to dynamically create and
* access Java arrays.
@@ -119,6 +121,7 @@
* @exception IllegalArgumentException if the object argument is not
* an array
*/
+ @HotSpotIntrinsicCandidate
public static native int getLength(Object array)
throws IllegalArgumentException;
@@ -477,6 +480,7 @@
* Private
*/
+ @HotSpotIntrinsicCandidate
private static native Object newArray(Class<?> componentType, int length)
throws NegativeArraySizeException;