> 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 17 commits: - Merge branch 'master' into JDK-8391990 - Update comment - Add runtime test and use more no_hash, less explicit 0 - Rename and comment a bit - Remove useless java.management - Review - Don't overmask - Fix copyright date - Merge branch 'master' into JDK-8391990 - Also, make sure it's set - ... and 7 more: https://git.openjdk.org/jdk/compare/c1565def...a0b038f8 ------------- Changes: https://git.openjdk.org/jdk/pull/32660/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32660&range=08 Stats: 324 lines in 11 files changed: 308 ins; 3 del; 13 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
