Skip to content

8275584: Incorrect stack spilling in CallArranger on MacOS/AArch64 #746

Closed
nick-arm wants to merge 6 commits intoopenjdk:foreign-memaccess+abifrom
nick-arm:mac-stack
Closed

8275584: Incorrect stack spilling in CallArranger on MacOS/AArch64 #746
nick-arm wants to merge 6 commits intoopenjdk:foreign-memaccess+abifrom
nick-arm:mac-stack

Conversation

@nick-arm
Copy link
Collaborator

@nick-arm nick-arm commented Oct 21, 2022

This patch adds special handling for argument spilling on M1 Mac which does not follow the standard AArch64. In the standard ABI arguments are first extended to the full 64-bit register width and then spilled but on macOS the arguments are spilled according to their original width and packed using theior natural. @JornVernee did most of the work to support this but there were a few issues remaining related to structspilling which I've fixed up in the last commit here.


Progress

  • Change must not contain extraneous whitespace
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JDK-8275584: Incorrect stack spilling in CallArranger on MacOS/AArch64

Reviewers

Contributors

  • Jorn Vernee <jvernee@openjdk.org>

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/panama-foreign pull/746/head:pull/746
$ git checkout pull/746

Update a local copy of the PR:
$ git checkout pull/746
$ git pull https://git.openjdk.org/panama-foreign pull/746/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 746

View PR using the GUI difftool:
$ git pr show -t 746

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/panama-foreign/pull/746.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 21, 2022

👋 Welcome back ngasson! A progress list of the required criteria for merging this PR into foreign-memaccess+abi will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Ready for review label Oct 21, 2022
@mlbridge
Copy link

mlbridge bot commented Oct 21, 2022

Webrevs

@nick-arm
Copy link
Collaborator Author

/contributor add @JornVernee

@openjdk
Copy link

openjdk bot commented Oct 24, 2022

@nick-arm
Contributor Jorn Vernee <jvernee@openjdk.org> successfully added.

Copy link
Member

@JornVernee JornVernee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for fixing.

@openjdk
Copy link

openjdk bot commented Oct 24, 2022

@nick-arm This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8275584: Incorrect stack spilling in CallArranger on MacOS/AArch64

Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Reviewed-by: jvernee

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 123 new commits pushed to the foreign-memaccess+abi branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the foreign-memaccess+abi branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Ready to be integrated label Oct 24, 2022
@nick-arm nick-arm requested a review from JornVernee October 25, 2022 09:02
@nick-arm
Copy link
Collaborator Author

I'll integrate this one now unless there's any more reviews/comments?

@JornVernee
Copy link
Member

I think you're good to go :)

@nick-arm
Copy link
Collaborator Author

/integrate

@openjdk
Copy link

openjdk bot commented Oct 26, 2022

Going to push as commit d575ec5.
Since your change was applied there have been 123 commits pushed to the foreign-memaccess+abi branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Oct 26, 2022
@openjdk openjdk bot closed this Oct 26, 2022
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Oct 26, 2022
@openjdk
Copy link

openjdk bot commented Oct 26, 2022

@nick-arm Pushed as commit d575ec5.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants