8000 [Backport 3.2] wasm: align fiber stack pointer to 16 bytes by kateinoigakukun · Pull Request #12100 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

[Backport 3.2] wasm: align fiber stack pointer to 16 bytes #12100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By 8000 clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kateinoigakukun
Copy link
Member

In WebAssembly C ABI, the linear stack pointer must be always aligned to 16 bytes like other archs.
The misaligned stack pointer causes some weird memory corruption since compiler assumes the aligned stack pointer.


Backport ticket: https://bugs.ruby-lang.org/issues/20898

In WebAssembly C ABI, the linear stack pointer must be always aligned
to 16 bytes like other archs.
The misaligned stack pointer causes some weird memory corruption since
compiler assumes the aligned stack pointer.
@XrXr
Copy link
Member
XrXr commented Feb 13, 2025

Looks to be merged already in 1fc0895.

@XrXr XrXr closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0