Skip to content

Conversation

@qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Dec 17, 2025

What issue is this addressing?

Updates #343

What type of issue is this addressing?

bug

What this PR does | solves

amd64 and arm64 assembly trampolines moved from stack arguments to register arguments in #73. This means that we don't need to store the registers on the stack anymore. Note that doing so might even lead to some nasty bugs, as we are writing on stack slots that haven't been allocated in the function frame, potentially corrupting the caller stack.

@qmuntal qmuntal changed the title fakecgo: remove unnecessary stack arguments in assembly files fakecgo: don't overwrite the caller stack on arm64 trampolines Dec 17, 2025
Copy link
Collaborator

@TotallyGamerJet TotallyGamerJet left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

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

LGTM

@hajimehoshi hajimehoshi merged commit f6151bf into ebitengine:main Dec 18, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants