8381656: Take into account trampoline stub size and its relocations on Aarch64

Reviewed-by: dlong
This commit is contained in:
Vladimir Kozlov 2026-04-07 14:18:01 +00:00
parent b297f59dc9
commit da16b409c3

View File

@ -1182,12 +1182,12 @@ class CallStubImpl {
public:
// Size of call trampoline stub.
static uint size_call_trampoline() {
return 0; // no call trampolines on this platform
return MacroAssembler::max_trampoline_stub_size();
}
// number of relocations needed by a call trampoline stub
static uint reloc_call_trampoline() {
return 0; // no call trampolines on this platform
return 5; // metadata; call dest; trampoline address; trampoline destination; trampoline_owner_metadata
}
};