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

Remove usage of AtomicU64 in wasmparser #1412

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

alexcrichton
Copy link
Member

Instead substitute this with AtomicUsize which panics on overflow to catch any possible issues on 32-bit platforms. This is motivated by rust-lang/rust#120588 which is pulling wasmparser into the Rust compiler and AtomicU64 is not available on all the platforms the compiler itself is built for.

I plan on backporting this to the 0.118.x release track as well which is what's used by the object crate currently to avoid the need for a whole bunch of cascading updates.

Instead substitute this with `AtomicUsize` which panics on overflow to
catch any possible issues on 32-bit platforms. This is motivated by
rust-lang/rust#120588 which is pulling
`wasmparser` into the Rust compiler and `AtomicU64` is not available on
all the platforms the compiler itself is built for.

I plan on backporting this to the `0.118.x` release track as well which
is what's used by the `object` crate currently to avoid the need for a
whole bunch of cascading updates.
@alexcrichton alexcrichton merged commit f1d89a4 into bytecodealliance:main Feb 12, 2024
15 checks passed
@alexcrichton alexcrichton deleted the remove-atomic-u64 branch February 12, 2024 14:42
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Feb 12, 2024
Instead substitute this with `AtomicUsize` which panics on overflow to
catch any possible issues on 32-bit platforms. This is motivated by
rust-lang/rust#120588 which is pulling
`wasmparser` into the Rust compiler and `AtomicU64` is not available on
all the platforms the compiler itself is built for.

I plan on backporting this to the `0.118.x` release track as well which
is what's used by the `object` crate currently to avoid the need for a
whole bunch of cascading updates.
alexcrichton added a commit that referenced this pull request Feb 12, 2024
Instead substitute this with `AtomicUsize` which panics on overflow to
catch any possible issues on 32-bit platforms. This is motivated by
rust-lang/rust#120588 which is pulling
`wasmparser` into the Rust compiler and `AtomicU64` is not available on
all the platforms the compiler itself is built for.

I plan on backporting this to the `0.118.x` release track as well which
is what's used by the `object` crate currently to avoid the need for a
whole bunch of cascading updates.
alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Feb 12, 2024
Getting bytecodealliance#1412 on crates.io both on the `main` branch as well as the
historical branch.
alexcrichton added a commit that referenced this pull request Feb 12, 2024
Getting #1412 on crates.io both on the `main` branch as well as the
historical branch.
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.

2 participants