RFR: 8357223: AArch64: Optimize interpreter profile updates [v2]
Chad Rakoczy
duke at openjdk.org
Thu May 29 23:04:25 UTC 2025
> [JDK-8357223](https://bugs.openjdk.org/browse/JDK-8357223)
>
> The aarch64 version of [JDK-8356946](https://bugs.openjdk.org/browse/JDK-8356946)
>
> The reasoning for this change is the same as the x86 version's PR:
>
>> First, we carry the implementation for counter decrements without using them. This is dead code, and can be purged.
>>
>> Second, we care about overflows for 64-bit for some reason. I think this is a reminiscent of 32-bit x86 support, where we can plausibly have 32-bit counter overflow in a reasonable timeframe. But for 64-bit counter, we need tens of years of constantly bashing the counter to get it to overflow. No other profile counter update code, e.g. in C1, cares about this.
>
> Additional testing:
>
> - [x] Linux aarch64 fastdebug tier 1/2/3/4
Chad Rakoczy has updated the pull request incrementally with one additional commit since the last revision:
Address comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25512/files
- new: https://git.openjdk.org/jdk/pull/25512/files/5368815e..0a336523
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25512&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25512&range=00-01
Stats: 6 lines in 1 file changed: 0 ins; 5 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25512.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25512/head:pull/25512
PR: https://git.openjdk.org/jdk/pull/25512
More information about the hotspot-compiler-dev
mailing list