File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1753,7 +1753,9 @@ int MachCallDynamicJavaNode::ret_addr_offset()
1753
1753
1754
1754
int MachCallRuntimeNode::ret_addr_offset() {
1755
1755
// for generated stubs the call will be
1756
- // far_call(addr)
1756
+ // bl(addr)
1757
+ // or with far branches
1758
+ // bl(trampoline_stub)
1757
1759
// for real runtime callouts it will be six instructions
1758
1760
// see aarch64_enc_java_to_runtime
1759
1761
// adr(rscratch2, retaddr)
@@ -1762,7 +1764,7 @@ int MachCallRuntimeNode::ret_addr_offset() {
1762
1764
// blr(rscratch1)
1763
1765
CodeBlob *cb = CodeCache::find_blob(_entry_point);
1764
1766
if (cb) {
1765
- return MacroAssembler::far_branch_size() ;
1767
+ return 1 * NativeInstruction::instruction_size ;
1766
1768
} else {
1767
1769
return 6 * NativeInstruction::instruction_size;
1768
1770
}
You can’t perform that action at this time.
0 commit comments