Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Backport 3.3] wasm: align fiber stack pointer to 16 bytes #12101

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 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

Merged

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Nov 15, 2024

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.
@kateinoigakukun kateinoigakukun changed the title wasm: align fiber stack pointer to 16 bytes [Backport 3.3] wasm: align fiber stack pointer to 16 bytes Nov 15, 2024
@k0kubun k0kubun merged commit a97621e into ruby:ruby_3_3 Nov 15, 2024
95 of 96 checks passed
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