RFR: 8339260: Move rarely used constants out of ClassFile [v9]

Luca Kellermann duke at openjdk.org
Fri Nov 29 22:23:53 UTC 2024


On Fri, 29 Nov 2024 18:59:41 GMT, Chen Liang <liach at openjdk.org> wrote:

>>> Yet I think we can consider promoting Constant Pool tag from byte or char, short, or int to represent a u1 in case it goes over 127.
>> 
>> Is there any chance a change like this could make it into JDK 24? I'd imagine it would be too late after that because it's a binary incompatible change.
>
> Don't think so. This imo is fixable  in the future if we do have many new cp/annotation tags (see example of Thread::threadId), though I don't think that is likely

Wait, I referenced the wrong thing. I was speaking about this:
> Maybe just using `int` everywhere for consistency might be a good option too.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20773#discussion_r1863964283


More information about the core-libs-dev mailing list