> 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 incrementally with one additional 
commit since the last revision:

  Add runtime test and use more no_hash, less explicit 0

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/32660/files
  - new: https://git.openjdk.org/jdk/pull/32660/files/7b3d7813..42f60406

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=32660&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32660&range=05-06

  Stats: 160 lines in 9 files changed: 130 ins; 3 del; 27 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

Reply via email to