subotac opened PR #14030 from subotac:fix/loongarch64-stackswitch-reserve-first to bytecodealliance:main:
Fixes #13885.
Decrement the LoongArch64 fiber stack pointer before saving callee-saved registers, then address each save within the reserved 0xa0-byte frame. This avoids writing below the current stack pointer before the frame is
allocated and matches the existing restore layout.## Testing
-
cargo check -p wasmtime-internal-fiber --target loongarch64-unknown-linux-gnu
-cargo clippy -p wasmtime-internal-fiber --target loongarch64-unknown-linux-gnu -- -D warnings
-cargo fmt --manifest-path crates/fiber/Cargo.toml -- --check
subotac requested pchickey for a review on PR #14030.
subotac requested wasmtime-core-reviewers for a review on PR #14030.
pchickey unassigned pchickey from PR #14030 Reserve LoongArch64 fiber stack space before saving registers.
pchickey requested cfallin for a review on PR #14030.
:thumbs_up: cfallin submitted PR review.
cfallin added PR #14030 Reserve LoongArch64 fiber stack space before saving registers to the merge queue.
:check: cfallin merged PR #14030.
cfallin removed PR #14030 Reserve LoongArch64 fiber stack space before saving registers from the merge queue.
Last updated: Aug 30 2026 at 09:07 UTC