Skip to content

Support for acquire/release semantics in atomics #8165

Closed
1 of 1 issue completed
Closed

Description

@stevenfontanella

Following the shared everything threads proposal, Wasm will add support for relaxed atomic memory operations with a new memory ordering for acquire/release in addition to the existing sequentially consistent mode.

We should add support for reading/writing the new memory orderings. For now, this won't affect our optimizations; we will conservatively treat acquire/release memory operations the same as sequentially consistent.

  • Parsing/printing/execution for atomic instructions with the new immediate
  • C + JS API Changes
  • Feature flag for relaxed atomics
  • Fuzzing support
  • Spec tests in Binaryen / the proposal

Activity

  1. 10 remaining items

  2. stevenfontanella commented on Jun 16, 2026

    @stevenfontanella
    MemberAuthor

    Relaxed atomics for atomic.fence has been added to the proposal: https://github.com/WebAssembly/relaxed-atomics/blob/main/proposals/relaxed-atomics/Overview.md#atomic-fences. Will add the support for that too. Reopening for now.

  3. linked a pull request that will close this issueAdd acqrel ordering to atomic.fence #8845on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions