On Mon, 15 Jul 2024 01:45:57 GMT, Chen Liang <li...@openjdk.org> wrote:
> 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. Indeed, for some reason I thought the range of short is -256 to 255 instead of -65536 to 65535 ------------- PR Comment: https://git.openjdk.org/jdk/pull/20178#issuecomment-2228389586