RFR: 8335922: Incorrect @Stable usage of LambdaForm$Name.index [v2]
Chen Liang
liach at openjdk.org
Mon Jul 15 14:09:22 UTC 2024
> The `@Stable` on the `index` field is incorrect, as stable only avoids inlining `0`. Solution is to use bit flip on the actual index (and rename the field to `flippedIndex`), so we use -1 to -256 (mapping to 0 to 255) and 0 the default value is used as an unset indicator.
Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
We have sufficient space in short, use +1 offset
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20178/files
- new: https://git.openjdk.org/jdk/pull/20178/files/7d111ba3..0743c5f9
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20178&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20178&range=00-01
Stats: 8 lines in 1 file changed: 0 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk/pull/20178.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20178/head:pull/20178
PR: https://git.openjdk.org/jdk/pull/20178
More information about the core-libs-dev
mailing list