Skip to content

Commit 0666ee0

Browse files
author
duke
committed
Automatic merge of jdk:master into master
2 parents 273e592 + 79ac041 commit 0666ee0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,9 @@ int MachCallDynamicJavaNode::ret_addr_offset()
17531753

17541754
int MachCallRuntimeNode::ret_addr_offset() {
17551755
// for generated stubs the call will be
1756-
// far_call(addr)
1756+
// bl(addr)
1757+
// or with far branches
1758+
// bl(trampoline_stub)
17571759
// for real runtime callouts it will be six instructions
17581760
// see aarch64_enc_java_to_runtime
17591761
// adr(rscratch2, retaddr)
@@ -1762,7 +1764,7 @@ int MachCallRuntimeNode::ret_addr_offset() {
17621764
// blr(rscratch1)
17631765
CodeBlob *cb = CodeCache::find_blob(_entry_point);
17641766
if (cb) {
1765-
return MacroAssembler::far_branch_size();
1767+
return 1 * NativeInstruction::instruction_size;
17661768
} else {
17671769
return 6 * NativeInstruction::instruction_size;
17681770
}

0 commit comments

Comments
 (0)