--- a/jdk/src/java.base/share/classes/java/nio/Buffer.java Thu Jul 02 17:50:25 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/nio/Buffer.java Fri Jul 03 07:23:45 2015 +0200
@@ -26,6 +26,7 @@
package java.nio;
import java.util.Spliterator;
+import jdk.internal.HotSpotIntrinsicCandidate;
/**
* A container for data of a specific primitive type.
@@ -535,6 +536,7 @@
* IndexOutOfBoundsException} if it is not smaller than the limit
* or is smaller than zero.
*/
+ @HotSpotIntrinsicCandidate
final int checkIndex(int i) { // package-private
if ((i < 0) || (i >= limit))
throw new IndexOutOfBoundsException();