RFR: 8369211: AArch64: Devirtualize class RelocActions
Andrew Dinn
adinn at openjdk.org
Tue Oct 14 10:34:46 UTC 2025
On Mon, 6 Oct 2025 15:14:59 GMT, Andrew Haley <aph at openjdk.org> wrote:
> 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.
I did not expect to be saying this but it looks much better with templates!
-------------
Marked as reviewed by adinn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27649#pullrequestreview-3334922589
More information about the hotspot-dev
mailing list