rfc: 0015 scalar atomics and the Aji memory model accepted (revision 2) and integrated into the spec
The Aji RC11 profile (RC11 with NO-THIN-AIR; stronger than ISO C11/C++20) as normative axioms in spec 04 §20; DRF-SC; linear atomic<T> for AtomicScalar with atomic.new/atomic.take; ref<atomic<T>> operands; ordering tables incl. cmpxchg failure table and two results; effects [atomic] / [atomic, atomic.weak]; target atomic_widths and E4203; E4202; enumerator as oracle (observed ⊆ allowed, exact equality on the normative litmus corpus). Feature atomics stays reserved until P5-2a. Q-015 resolved; record/replay and Q-017 moved to Phase 8. RFC 0003 superseded. AIR bundle +1.9 %.
This commit is contained in:
1 parent
702d69b2c1
commit
2bbbd2135c
24 files changed
+927
-142
No files matched your search
@@ -80,5 +80,8 @@ Format version 0 defines one field:
|
||||
| Field | Meaning |
|
||||
|---|---|
|
||||
| `pointer_bits` | width of `usize`/`isize` in bits: 32 or 64 |
|
||||
| `atomic_widths` | the AtomicScalar widths, in bits, that the target implements natively and lock-free (feature `atomics`, spec 04 §23) |
|
||||
|
||||
The reference interpreter uses the target `air64` (`pointer_bits = 64`) unless a module declares target requirements (a later format version).
|
||||
A module that uses `atomic<T>` for a width the target does not list is rejected for that target at build time (`E4203`, `atomic.unsupported_width`). An implementation MUST NOT emulate an atomic with a lock.
|
||||
|
||||
The reference interpreter uses the target `air64` (`pointer_bits = 64`, `atomic_widths = {8, 16, 32, 64}`) unless a module declares target requirements (a later format version).
|
||||
Reference in new issue
Block a user