jdk/src/java.base/share/classes/java/nio/Buffer.java
changeset 31671 362e0c0acece
parent 27292 7ff4b24b33ce
child 31873 87b015c2cd36
--- 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();