Stores by address are bounded: title buffers take the builder's only where it was given them to write

A directory entry says whether stores by address reach its page (translator and host). Faults take at most 128 pages a frame and 8,192 in all; every slot of the copies' run holds a null view until its copy is there; a page is looked at once a frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 04:53:33 -06:00
1 parent ea375caa52
commit 96bfd0ebec
6 files changed
+136 -46

No files matched your search

+11 -1
View File
@@ -1061,6 +1061,16 @@ impl State {
h => crate::descriptor::heap(h as This).host(),
}?;
let (mut addresses, mut constants) = (Vec::new(), Vec::new());
// (What it may write: its root views of unordered access.)
let written: Vec<u64> = t
.used
.iter()
.filter(|u| u.kind == ResourceType::Uav && u.root == RootType::Descriptor)
.filter_map(|u| match self.roots_ref(compute).get(usize::from(u.slot)) {
Some(&Root::View(address)) => Some(address),
_ => None,
})
.collect();
for root in self.roots_ref(compute) {
match root {
// (Of a program that only walks structures, the structures'
@@ -1075,7 +1085,7 @@ impl State {
addresses.push(self.view_address(compute, u.slot, u.dword));
}
}
crate::memory::ready(list, heap, &addresses, &constants, use_)
crate::memory::ready(list, heap, &addresses, &written, &constants, use_)
}
/// The bound heap holding `handle`.