RFR: 8287292: Improve TransformKey to pack more kinds of transforms efficiently

Claes Redestad redestad at openjdk.java.net
Wed May 25 13:43:56 UTC 2022


On Wed, 25 May 2022 13:30:23 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maybe not... argument positions should fit in a byte as well. But, maybe there are other problematic cases? Or are the ints guaranteed to fit in a byte?
>
> Maybe an `assert b == b23456[i]` would be nice here.

All usage implies the int is an argument position, which by spec is constrained to be in the 0-255 range. But surely checking or asserting shouldn't hurt.

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

PR: https://git.openjdk.java.net/jdk/pull/8881


More information about the core-libs-dev mailing list