RFR: 8321279: Implement hashCode() in Heap-X-Buffer.java.template [v7]
Sergey Tsypanov
stsypanov at openjdk.org
Tue Dec 12 08:01:47 UTC 2023
> Currently `Heap*Buffer.hashCode()` is inherited from `*Buffer` and implemented as
>
> public int hashCode() {
> int h = 1;
> int p = position();
> for (int i = limit() - 1; i >= p; i--)
> h = 31 * h + (int)get(i);
> return h;
> }
>
> This can be improved using `ArraysSupport.vectorizedHashCode()`
Sergey Tsypanov has updated the pull request incrementally with one additional commit since the last revision:
8320971: Rename method
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16992/files
- new: https://git.openjdk.org/jdk/pull/16992/files/281e2af4..d9192537
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16992&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16992&range=05-06
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/16992.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16992/head:pull/16992
PR: https://git.openjdk.org/jdk/pull/16992
More information about the nio-dev
mailing list