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).

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

Commit messages:
 - 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=00
  Issue: https://bugs.openjdk.org/browse/JDK-8391990
  Stats: 112 lines in 4 files changed: 104 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

Reply via email to