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:
1 parent
5b2af05e9a
commit
fbe8ecc617
6 files changed
+136
-46
No files matched your search
@@ -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`.
|
||||
|
||||
Reference in new issue
Block a user