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

AArch64: Trampoline generation code reads from uninitialized memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 11
    • 11
    • 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.

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

                Created:
                Updated:
                Resolved: