RFR: 8369211: AArch64: Devirtualize class RelocActions

Andrew Haley aph at openjdk.org
Mon Oct 6 16:56:11 UTC 2025


RelocActions is instantiated every time we need to apply a reloc. There's really no need for this, and the use of virtual member functions and function pointers obfuscates the code.

While C++ compilers can devirtualize much of this, they don't always devirtualize all of it. Let's make RelocActions all static.

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

Commit messages:
 - Tmp
 - Tmp
 - Devirtualize AArch64 RelocActions
 - Seems to work

Changes: https://git.openjdk.org/jdk/pull/27649/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27649&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369211
  Stats: 111 lines in 1 file changed: 5 ins; 36 del; 70 mod
  Patch: https://git.openjdk.org/jdk/pull/27649.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27649/head:pull/27649

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


More information about the hotspot-dev mailing list