RFR: JDK-8304884: Update Bytecodes data to be mostly compile time constants

Justin King jcking at openjdk.org
Fri Mar 24 16:22:50 UTC 2023


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.

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

Commit messages:
 - Update spacing
 - Statically initialize parts of Bytecodes

Changes: https://git.openjdk.org/jdk/pull/13179/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13179&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8304884
  Stats: 591 lines in 2 files changed: 299 ins; 263 del; 29 mod
  Patch: https://git.openjdk.org/jdk/pull/13179.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13179/head:pull/13179

PR: https://git.openjdk.org/jdk/pull/13179


More information about the hotspot-runtime-dev mailing list