RFR: 8256025: AArch64: MachCallRuntimeNode::ret_addr_offset() is incorrect for stub calls

Nick Gasson ngasson at openjdk.java.net
Tue Nov 10 03:24:02 UTC 2020


The PR for JDK-8254231 introduces a new assertion in opto/output.cpp to
check the current instruction offset against the offset of the call
return address reported by ret_addr_offset(). This fails on AArch64
because MachCallRuntimeNode::ret_addr_offset() claims four instructions
are generated for a stub call (far branch) but actually it's just
one (blr to stub or trampoline).

Tested tier1.

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

Commit messages:
 - 8256025: AArch64: MachCallRuntimeNode::ret_addr_offset() is incorrect for stub calls

Changes: https://git.openjdk.java.net/jdk/pull/1138/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1138&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8256025
  Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1138.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1138/head:pull/1138

PR: https://git.openjdk.java.net/jdk/pull/1138


More information about the hotspot-compiler-dev mailing list