A book of who has and had the card's memory; a check of every view slot
With device-removed data on, every buffer, texture and texture block stands in a book with its address (a texture's is the base in its first descriptor) and stays with the time it went. A device loss prints who has and had the faulting address, newest first, and every slot of the view heap whose descriptor reaches it, with what our books say of the slot. VICTORY_BOOK=0: not kept. VICTORY_SLOT_CHECK=1 walks the view heap (2^22 slots, 3.8 s a round) and says which slots name memory that is gone. Run crash-5 (opening, -Walk, 260 s): 1.7 million descriptors a round, 105,352 things alive, 27,342 gone, none of the slots named anything gone or unknown in any round. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
55babd1acf
commit
67471988dc
6 files changed
+805
-1
No files matched your search
@@ -391,6 +391,11 @@ pub(crate) unsafe fn texture(
|
||||
(Ok(()), Some(made)) => {
|
||||
HELD.fetch_add(piece.len, Ordering::Relaxed);
|
||||
give_back_with(&made, piece);
|
||||
#[cfg(feature = "diagnostics")]
|
||||
{
|
||||
crate::book::made(&made, || "a texture in a block".into());
|
||||
crate::book::block(&heap, &made, piece.start, BLOCK);
|
||||
}
|
||||
Some(made)
|
||||
}
|
||||
_ => {
|
||||
|
||||
Reference in new issue
Block a user