spec 04 §20: Q-024 resolved (RMW events, initialization write, object orders, channel FIFO and capacity, C++20 release sequence); litmus corpus normative; P5-0 PASS; Phase 5 implementation GO

This commit is contained in:
dev committed 2026-10-06 07:26:47 +03:00
1 parent f8d2a99249
commit ce9ef03bc0
6 files changed
+89 -18

No files matched your search

+14 -1
View File
@@ -26,7 +26,7 @@ Status values: `open`, `resolved`.
| Q-018 | resolved | P2 | Runtime diagnostics (traps) vs verifier diagnostics |
| Q-019 | resolved | P3 | Non-terminating programs in test tooling |
| Q-020 | resolved | P2 | Size bound for SSA array values |
| Q-024 | open | P5 | Memory-model clarifications found by the independent oracle |
| Q-024 | resolved | P5 | Memory-model clarifications found by the independent oracle |
## Q-001 — Text AIR grammar
@@ -184,3 +184,16 @@ The independent author of `tools/litmus/enumerate.py` (P5-1a) worked from spec 0
Points 1–3 and 5 are editorial. Point 4 fixes FIFO, which spec 04 §38 already implies for the interpreter, but leaves capacity synchronization open.
**Resolved (owner, 2026-10-06; spec 04 §20.1–§20.3).**
1. A successful RMW or compare-exchange is a read event plus a write event plus an `rmw` edge. A failed compare-exchange is a read only.
2. A distinguished initialization write. It precedes every other write in `mo`, happens-before every program access, and is a service event of the model, not a source-level access or a race.
3. An object order is consistent with `hb`: if `a hb→ b`, then `a` precedes `b`.
4. Channels:
- buffered channels are FIFO in one enqueue order chosen by the execution;
- rendezvous pairs are chosen by the scheduler;
- a send synchronizes with the receive that obtains its value;
- capacity affects blocking and scheduling, not memory ordering;
- capacity-based synchronization would be a separate feature by RFC.
5. The C++20 release sequence, stated explicitly.