Page blocks: kept() asks the page buffers' address types before it borrows the families; docs

kept() asked address_types for Holds::PageBuffers while a Sharing borrowed
the families, which the borrow checker refused (job 11930). The query now runs
before that borrow.

Docs: memory.rs's module docs get "Buffers in the runtime's own pages";
device/carry.rs, Buffer::carry, the runtime README and docs/API.md's recovery
cost say a recovery carries the Shared and Managed (unified memory) buffers in
blocks of the runtime's own pages, and leaves those in memory the device
allocated.

Verification: the build follows.
(cherry picked from commit e5df53c305b27909f4cca460a4910c12861d20aa)
This commit is contained in:
Anees Iqbal committed 2026-11-09 09:51:53 -08:00
1 parent 72f37612a4
commit 3d0ece2f7a
5 files changed
+49 -13

No files matched your search

+4 -2
View File
@@ -3287,8 +3287,10 @@ bound.
recovery announced: where a call waited past 10 seconds for the recovery under way, where its
command buffers in flight took past 10 seconds to fail, and where its new `VkDevice` could not
be made, after which the device answers as a lost one. `Device::recover_for_test` runs the same recovery with no GPU fault. Cost: the events,
uses of guest RAM, no-copy buffers, `Private` buffers and buffers in fresh pages made before it
go on, a `Private` buffer's contents lost (it reads zero); the other objects made before it are
uses of guest RAM, no-copy buffers, `Private` buffers and buffers in the runtime's own pages
(fresh pages, and the blocks of pages the `Shared` and `Managed` buffers lie in where the
device's check found a held host-page import costs its submissions nothing) made before it go
on, a `Private` buffer's contents lost (it reads zero); the other objects made before it are
refused (`MadeBeforeRecovery`), where Metal's go on; the calls during it wait for it, and a
device call the loss met while it ran runs again after it. A no-copy buffer is made again over
the same pages on the new `VkDevice`, as its making or last rebind made it, so the caller's