JDK-8207345 : AArch64: Trampoline generation code reads from uninitialized memory
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2018-07-16
  • Updated: 2021-02-01
  • Resolved: 2018-07-17
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 11 JDK 12 Other
11 b23Fixed 12Fixed openjdk8u292Fixed
Related Reports
Relates :  
Description
At present, the AArch64 back end does this when generating trampolines:

  if (far_branches() && !Compile::current()->in_scratch_emit_size()) {
    address stub = emit_trampoline_stub(start_offset, entry.target());

This is only correct for C2 compilation. The class Compile is, despite its name, only present in C2, so we must check that we are C2-compiling before calling it.