8300493: Use ArraysSupport.vectorizedHashCode in j.u.zip.ZipCoder

Reviewed-by: alanb, lancea
This commit is contained in:
Claes Redestad 2023-01-21 11:54:51 +00:00
parent 06394ee8b1
commit bb42e61a61
4 changed files with 112 additions and 17 deletions

View file

@ -2461,6 +2461,9 @@ public final class System {
return ModuleLayer.layers(loader);
}
public int countPositives(byte[] bytes, int offset, int length) {
return StringCoding.countPositives(bytes, offset, length);
}
public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException {
return String.newStringNoRepl(bytes, cs);
}