Integrated: 8369211: AArch64: Devirtualize class RelocActions
Andrew Haley
aph at openjdk.org
Tue Oct 21 14:29:56 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.
This pull request has now been integrated.
Changeset: 9a88d7f4
Author: Andrew Haley <aph at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/9a88d7f468cdd040bdf4e1ff9441dc9c66eab03e
Stats: 125 lines in 2 files changed: 5 ins; 44 del; 76 mod
8369211: AArch64: Devirtualize class RelocActions
Reviewed-by: adinn, asmehra
-------------
PR: https://git.openjdk.org/jdk/pull/27649
More information about the hotspot-dev
mailing list