The title's writes into guarded blocks go in beside the guard: its memcpy, memmove and memset (VICTORY_COPY_BESIDE=1) and single stores that fault (VICTORY_STORE_BESIDE=1); both off
Most of what faults is the runtime's memcpy (a third by time) and single stores into objects that lie in memory some copy covers: flags, reference counts, links of free lists. The bytes are put in through our own view of the page, the block told as written at every view by a bit that the next asking takes: no protection changes, for the write or for the next taking. Copies: the title's imports are ours and look at the blocks' bits. Stores: the instruction that faulted is decoded and done in the handler. Too many to a block, or code that fills blocks: opened as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7bc7c0748d
commit
f19e55b8b6
8 files changed
+1229
-16
No files matched your search
@@ -79,6 +79,14 @@ impl HostPolicy {
|
||||
return None;
|
||||
}
|
||||
let address = imp::resolve(dll, symbol)?;
|
||||
// The title's copies of memory look where they write.
|
||||
#[cfg(windows)]
|
||||
if let ImportSymbol::Name { name, .. } = symbol {
|
||||
let ours = victory_gpu::titlewrite::import(name, address);
|
||||
if ours != address {
|
||||
return Some(ours);
|
||||
}
|
||||
}
|
||||
// With a timeline asked for, what threads wait with is wrapped.
|
||||
#[cfg(all(windows, feature = "diagnostics"))]
|
||||
if let ImportSymbol::Name { name, .. } = symbol {
|
||||
|
||||
Reference in new issue
Block a user