Skip to content
Permalink
Browse files
8254761: Wrong intrinsic annotation used for StringLatin1.indexOfChar
Reviewed-by: alanb
  • Loading branch information
cl4es committed Oct 14, 2020
1 parent 738effa commit a6a381353a045658464c3d78f6b9d9e42e680ac4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java.base/share/classes/java/lang/StringLatin1.java
@@ -213,7 +213,7 @@ public static int indexOf(byte[] value, int ch, int fromIndex) {
return indexOfChar(value, ch, fromIndex, max);
}

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

1 comment on commit a6a3813

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on a6a3813 Oct 14, 2020

Please sign in to comment.