synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / g3-shm-ring / red-green / red2-stub.diff
| 1 | --- /tmp/g3red/ring.rs.orig 2026-10-16 03:46:19.566396941 -0500 |
| 2 | +++ /tmp/g3red/ring.rs.red2 2026-10-16 03:49:30.630784992 -0500 |
| 3 | @@ -418,7 +418,8 @@ |
| 4 | /// The data word holding byte index `index` (a multiple of 8). The mask keeps the |
| 5 | /// position inside the data area for every `index`; the slice index is bounds-checked. |
| 6 | fn data(&self, index: u64) -> &AtomicU64 { |
| 7 | - let pos = ((index / 8) & self.data_mask) as usize; |
| 8 | + // RED STUB 2: no mask; the position is used as given. |
| 9 | + let pos = (index / 8) as usize; |
| 10 | &self.region.words()[self.base + CONTROL_WORDS + pos] |
| 11 | } |
| 12 |