subotac requested pchickey for a review on PR #14027.
subotac opened PR #14027 from subotac:fix/atomic-wait-big-endian to bytecodealliance:main:
Fixes #13988.
WebAssembly linear memory is little-endian, while the native atomic views used by shared memory follow host endianness. Convert the expected wait32 and wait64 values at that boundary so comparisons use the same byte
representation on big-endian hosts.Add the issue's wait32/wait64 regression cases and exclude the test from the pooling configuration, which does not support shared memory.
Tests:
-
cargo test --test wast -- atomic_wait_endianness
-cargo test --test wast -- threads
-cargo fmt -p wasmtime -p wasmtime-test-util -- --check
subotac requested wasmtime-core-reviewers for a review on PR #14027.
pchickey requested alexcrichton for a review on PR #14027.
pchickey unassigned pchickey from PR #14027 Fix atomic wait expected values on big-endian hosts.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #14027 Fix atomic wait expected values on big-endian hosts to the merge queue.
github-merge-queue[bot] removed PR #14027 Fix atomic wait expected values on big-endian hosts from the merge queue.
github-actions[bot] added the label wasmtime:api on PR #14027.
alexcrichton requested fitzgen for a review on PR #14027.
alexcrichton updated PR #14027.
alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #14027.
alexcrichton has enabled auto merge for PR #14027.
alexcrichton added PR #14027 Fix atomic wait expected values on big-endian hosts to the merge queue.
:check: alexcrichton merged PR #14027.
alexcrichton removed PR #14027 Fix atomic wait expected values on big-endian hosts from the merge queue.
Last updated: Aug 30 2026 at 09:07 UTC