Skip to content

Interp atomicrmw - #5993

Draft
davecheney wants to merge 1 commit into
tinygo-org:devfrom
davecheney:interp-atomicrmw
Draft

davecheney wants to merge 1 commit into
tinygo-org:devfrom
davecheney:interp-atomicrmw

Conversation

@davecheney

Copy link
Copy Markdown
Contributor

No description provided.

@davecheney davecheney added this to the 0.45 milestone Oct 22, 2026
sync/atomic functions are compiled to ordinary bodies built on atomicrmw
and cmpxchg, so interpreting those instructions covers Add, And, Or, Swap
and CompareAndSwap for every type without matching on function names.

Before other execution contexts exist an atomic operation on memory the
interpreter owns is just a load and a store. Volatile operations and
memory with external loads or stores are still left for runtime, as with
the existing atomic load and store handling.
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.

1 participant