8254761: Wrong intrinsic annotation used for StringLatin1.indexOfChar

Reviewed-by: alanb
This commit is contained in:
Claes Redestad 2020-10-14 14:11:16 +00:00
parent 738effade4
commit a6a381353a

View file

@ -213,7 +213,7 @@ final class StringLatin1 {
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++) {