Skip to content

Commit a6a3813

Browse files
committedOct 14, 2020
8254761: Wrong intrinsic annotation used for StringLatin1.indexOfChar
Reviewed-by: alanb
1 parent 738effa commit a6a3813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/java.base/share/classes/java/lang/StringLatin1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static int indexOf(byte[] value, int ch, int fromIndex) {
213213
return indexOfChar(value, ch, fromIndex, max);
214214
}
215215

216-
@HotSpotIntrinsicCandidate
216+
@IntrinsicCandidate
217217
private static int indexOfChar(byte[] value, int ch, int fromIndex, int max) {
218218
byte c = (byte)ch;
219219
for (int i = fromIndex; i < max; i++) {

0 commit comments

Comments
 (0)
Please sign in to comment.