JDK-8249781 : AArch64: AOT compiled code crashes if C2 allocates r27
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 15,16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2020-07-21
  • Updated: 2021-10-26
  • Resolved: 2020-07-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15 JDK 16
15.0.2Fixed 16 b08Fixed
Related Reports
Relates :  
Description
AOT compiled code always assumes r27 is the heap base pointer, but since JDK-8242449 C2 can allocate it as a general register if the compressed class base is null.

To reproduce:

make test TEST="compiler/aot/cli/jaotc/CompileModuleTest.java" JTREG="VM_OPTIONS=-Xcomp -XX:-TieredCompilation"
Comments
Removing jdk11u-fix-request as JDK-8242449 was rejected for 11u backport.
26-10-2021

Fix Request (11u): This a follow-up to JDK-8242449. Original patch has been adjusted to use Universe::narrow_ptrs_base() instead of CompressedOops::ptrs_base(). PR: https://github.com/openjdk/jdk11u-dev/pull/138
25-10-2021

Fix request 15u: Applies cleanly. Improved stability.
14-11-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/1a25af2624b7 User: ngasson Date: 2020-07-24 09:07:06 +0000
24-07-2020

Review thread: https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2020-July/039151.html
24-07-2020