Stream: git-wasmtime

Topic: wasmtime / PR #13038 Fix panic in `atomic_wait{32,64}` wi...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:12):

alexcrichton opened PR #13038 from alexcrichton:fix-shared-memory-panic to bytecodealliance:main:

This fixes a panic due to the Instant deadline not being representable when the timeout duration is Duration::MAX. The solution here is to use checked_add and pretend there's no timeout on overflow since that's waiting long enough to effectively have no timeout. This is not reachable from WebAssembly as it can't represent long enough durations but is reachable via the embedder API. Additionally shared memories are gated by default, so this doesn't affect any default configuration.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:12):

alexcrichton requested dicej for a review on PR #13038.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:12):

alexcrichton requested wasmtime-core-reviewers for a review on PR #13038.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:39):

dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:44):

alexcrichton added PR #13038 Fix panic in atomic_wait{32,64} with massive timeouts to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 17:18):

alexcrichton merged PR #13038.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 17:18):

alexcrichton removed PR #13038 Fix panic in atomic_wait{32,64} with massive timeouts from the merge queue.


Last updated: Apr 12 2026 at 23:10 UTC