Skip to content

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