Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Feb 10, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

TNorthover and others added 5 commits February 10, 2021 11:23
1. We were allocating arg stack space twice for tail calls, once manually and
once in the CallSeq instructions.

2. We sometimes moved sp right to its entry point and then subtracted it again
to "reallocate" argument stack space. During that interval arguments are
vulnerable to clobbering by a  kernel interruption.

3. We weren't reserving space at incoming SP for the largest potential tail
call this function makes, so we clobbered callee-saved registers (and anything
else in the way) with arguments.
Cherry-picking latest swifttailcc changes
@pull pull bot merged commit 6691601 into swiftwasm:swift/main Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant