Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8207345

AArch64: Trampoline generation code reads from uninitialized memory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      aarch64

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aph Andrew Haley
                  Reporter:
                  aph Andrew Haley
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: