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

Evgeny Astigeevich eastigeevich at openjdk.org
Fri Oct 10 14:51:58 UTC 2025


On Thu, 9 Oct 2025 17:01:16 GMT, Mikhail Ablakatov <mablakatov at openjdk.org> wrote:

>> src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp line 1337:
>> 
>>> 1335:   // - relocInfo::static_call_type
>>> 1336:   // - relocInfo::virtual_call_type
>>> 1337:   // Trampolines may be emitted immediately or deferred until stub finalization,
>> 
>> "... until stub" -> "until CodeBuffer"
>
> Well, the state is called `_finalize_stubs` and there's `CodeBuffer::finalize_stubs()` but I can see how "stub" can be confused with non-nmethod runtime stubs, so yeah, I'll reword it.

`_finalize_stubs` means to finally generate all stubs in an nmethod. This includes stubs to interpreter, trampolines. 

Yes, there might be a confusion with global stub code.

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

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


More information about the hotspot-dev mailing list