--- old/src/java.base/share/classes/java/nio/Buffer.java 2015-06-26 17:30:24.741117237 +0200 +++ new/src/java.base/share/classes/java/nio/Buffer.java 2015-06-26 17:30:24.489117230 +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();