> The identity hash code of value objects currently can produce 0. A zero value > is usually not anticipated for System.identityHashCode calls unless the > argument is null; the 0 hash also cannot be cached. Thus, we should move away > from the 0 hash. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 10 commits: - Fix copyright date - Merge branch 'master' into JDK-8391990 - Also, make sure it's set - mask through hash code - Merge branch 'feature/value-hash-zero' of github.com:liachmodded/jdk into feature/value-hash-zero - Compiler part - Merge branch 'master' of github.com:openjdk/jdk into feature/value-hash-zero - Use class identity hash code - Merge branch 'master' of github.com:openjdk/jdk into feature/value-hash-zero - Mask zero value object hash ------------- Changes: https://git.openjdk.org/jdk/pull/32660/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32660&range=01 Stats: 181 lines in 9 files changed: 173 ins; 0 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/32660.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32660/head:pull/32660 PR: https://git.openjdk.org/jdk/pull/32660
