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:
dev committed 2026-10-06 00:30:35 +03:00
1 parent 702d69b2c1
commit 2bbbd2135c
24 files changed
+927 -142

No files matched your search

+15
View File
@@ -274,3 +274,18 @@ The authority object of a `cap<mem.alloc>` carries a budget of simultaneously li
- A capability is represented as an index into a host-owned table of (kind, scope) entries. The index is not observable by the program.
- Narrowing appends a new table entry. Entries are never removed during a run.
- In the `deterministic` profile, grants refer to virtual resources (an in-memory file system, a captured stdout, a seeded clock and random source), so runs are reproducible.
## 13. Atomic effects (feature `atomics`)
The rule of spec 04 §25, checked like any other named effect (§9.3):
```text
seq_cst atomic operation → effects [atomic]
non-seq_cst atomic operation → effects [atomic, atomic.weak]
atomic.fence (any ordering) → effects [atomic]
atomic.new, atomic.take → no effect
```
For compare-exchange, the operation is non-`seq_cst` if either ordering is. A missing atom is `E3101`.
If `atomic.weak` is not among the transitive effects of `@main`, every atomic access is `seq_cst`, and every execution of the safe program is explainable as an SC interleaving (spec 04 §22).