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

+2
View File
@@ -70,6 +70,8 @@ Unsafe code must document applicable obligations, including:
Violation of an unsafe precondition may cause Undefined Aji Behavior.
Synchronization obligations are stated against the memory model (spec 04 §20–§21): an unsafe operation must not create a data race. In particular, an operation that mixes atomic and ordinary access to one location must keep every such pair ordered by happens-before. Format 0 has no unsafe operation on atomic cells (spec 04 §28).
## 5. Unsafe dependency report
The toolchain should produce a machine-readable report containing: