AArch64: Trampoline generation code reads from uninitialized memory

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 11
    • Affects Version/s: 11
    • Component/s: hotspot
    • b23
    • aarch64

        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.

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

                Created:
                Updated:
                Resolved: