RFR: JDK-8304884: Update Bytecodes data to be mostly compile time constants
Julian Waters
jwaters at openjdk.org
Fri Mar 24 17:20:39 UTC 2023
On Fri, 24 Mar 2023 16:14:50 GMT, Justin King <jcking at openjdk.org> wrote:
> Change uses a few tricks to make most of the data in Bytecodes compile time constant, avoiding the overhead during VM initialization. `Bytecodes:_flags` likely can be made compile time constant as well using `constexpr` tricks, but that is out of scope for this specific PR.
Not a review, but I want to point out that Bytecodes::_flags is declared as a jchar and defined as an unsigned short, might probably be helpful and less confusing to make it an unsigned short in both places. No comment on the other changes
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13179#issuecomment-1483152951
More information about the hotspot-runtime-dev
mailing list