Skip to content
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

std: Fix over-aligned allocations on wasm32-wasi #70585

Merged
merged 1 commit into from
Mar 31, 2020

Commits on Mar 30, 2020

  1. std: Fix over-aligned allocations on wasm32-wasi

    The wasm32-wasi target delegates its malloc implementation to the
    functions in wasi-libc, but the invocation of `aligned_alloc` was
    incorrect by passing the number of bytes requested first rather than the
    alignment. This commit swaps the order of these two arguments to ensure
    that we allocate over-aligned memory correctly.
    alexcrichton committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    ab2998b View commit details
    Browse the repository at this point in the history