RFR: 8369211: AArch64: Devirtualize class RelocActions [v2]

Andrew Haley aph at openjdk.org
Thu Oct 16 15:52:09 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.

Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:

  remove the two parameter versions of MacroAssembler::target_addr_for_insn

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27649/files
  - new: https://git.openjdk.org/jdk/pull/27649/files/c8590829..809bd2d3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27649&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27649&range=00-01

  Stats: 14 lines in 2 files changed: 0 ins; 8 del; 6 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