RFR: JDK-8304884: Update Bytecodes data to be mostly compile time constants [v2]
Coleen Phillimore
coleenp at openjdk.org
Mon Mar 27 14:55:48 UTC 2023
On Mon, 27 Mar 2023 01:25:29 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> It should probably be `Bytecodes::number_of_codes * 2`. Two entry per byte-code. One for the normal format and one for wide. Wasn't sure if it was safe or some code was relying on there being exactly 512 entries even if bytecode count is less than 256.
>
> When this was put in (JDK-6939207) the flags were arranged so that the two forms were at index N and N+256 rather than index N and N+number_of_codes. That seems to remain the case today - just grep for `1<<BitsPerByte`
ok, I see.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13179#discussion_r1149372065
More information about the hotspot-runtime-dev
mailing list