RFR: 8311864: Add ArraysSupport.hashCode(int[] a, fromIndex, length, initialValue)

Claes Redestad redestad at openjdk.org
Fri Jul 28 12:39:41 UTC 2023


On Fri, 28 Jul 2023 10:49:34 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Perhaps surprisingly, we don't need int[]; what JDK seems to use is these:
> 
> * byte[]
> * unsigned byte[]
> * Object[]

All `vectorizedHashCode` variants are exposed (and testable) via the public `java.util.Arrays.hashCode(byte/char/short/int[])` methods.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14831#issuecomment-1655620421


More information about the core-libs-dev mailing list