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

Incorrect stack spilling in CallArranger on MacOS/AArch64

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      Consider a C function like this:

      void f(int, int, int, int, int, int, int, int, char x, short y);

      In the standard AArch64 ABI x and y get spilled to the stack as eight byte quantities (as if they were assigned to a register and then spilled) but in the Mac ABI they are spilled to the stack with their original size and natural alignment. AArch64 CallArranger needs to handle this difference.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ngasson Nick Gasson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: