RFR: 8372845: C2: Fold identity hash code if object is constant [v2]
Chen Liang
liach at openjdk.org
Tue Dec 2 23:18:26 UTC 2025
> Folding identity hash as constant if the incoming argument is constant would be useful for quick map lookups, such as for the [Classifier proposal](https://openjdk.org/jeps/8357674). Currently, identity hash is not constant because it loads the object header/mark word. We can add an explicit bypass to load an existing hash eagerly instead.
Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
- Merge branch 'master' of https://github.com/openjdk/jdk into fix/identity-hash-const
- Cleanup
- identity hash support in C2
- Move around
- Constant fold identity hash
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28589/files
- new: https://git.openjdk.org/jdk/pull/28589/files/4a82f79d..69225241
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28589&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28589&range=00-01
Stats: 4382 lines in 99 files changed: 2947 ins; 684 del; 751 mod
Patch: https://git.openjdk.org/jdk/pull/28589.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28589/head:pull/28589
PR: https://git.openjdk.org/jdk/pull/28589
More information about the hotspot-runtime-dev
mailing list