RFR: 8359359: AArch64: share trampolines between static calls to the same method [v6]

Mikhail Ablakatov mablakatov at openjdk.org
Wed Oct 29 18:00:57 UTC 2025


On Sun, 19 Oct 2025 08:50:50 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:

>> The target is Continuation::enter(), thanks to LinkResolver::resolve_continuation_enter().
>
> Thank you @dean-long 
> 
> @mikabl-arm ,  it looks like we should allow `nullptr` for `callee` at the time of trampoline requested. We don't have `ciMethod`. Getting some kind of it might involve linking. In case of `gen_continuation_enter()` we don't save much vs adding complexity to Hotspot.

Even though we still allow `nullptr` for `callee`, while working on this I found a couple of spots in C1 that might benefit from passing an actual `callee` to `trampoline_call()`, see https://github.com/openjdk/jdk/pull/25954/commits/e3ad440bcce5b4f38649ad804b9e0afdc97f36ee.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25954#discussion_r2474419021


More information about the hotspot-dev mailing list