Repository navigation
perf(agc): collect merged image table ranges on reuse #28985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brajankw
wants to merge
43
commits into
boykopovar:main
Choose a base branch
from
brajankw:perf/agc-collect-merged-image-table-ranges
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+686
−77
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
105d2ad
perf(agc): share tracked image tables across queue threads
brajankw 7e910aa
perf(agc): reprove live image table entries on the consuming queue
brajankw ad2af59
perf(agc): scope remembered image table invalidation to checked ranges
brajankw 28acb6b
fix(libc): pin a readable range while its mapping is used
brajankw 83d7f91
fix(libc): refuse shared pages when baselining private write tracking
brajankw 32514c2
perf(agc): return private sampled ranges to Windows write tracking
brajankw 02882d4
perf(agc): memoize tracked image table proofs within a collect epoch
brajankw d2804f3
perf(agc): collect merged image table ranges on reuse
brajankw 821efcd
fix(libc): invalidate collectability when resident pages demote
brajankw dbd0266
fix(agc): keep mixed image tables in their collect epoch
brajankw 4ca5a1a
fix(libc): keep checked ranges retiring through mutation
brajankw 6f9bfdc
chore(agc): merge current main into shared image tables
brajankw 622f697
chore(agc): merge current image table prerequisites
brajankw b5be494
chore(agc): merge current image table prerequisites
brajankw e502ecc
chore(agc): merge current image table prerequisites
brajankw d37fbeb
chore(agc): merge current image table prerequisites
brajankw 38d92a2
chore(agc): merge current image table prerequisites
brajankw d4c987c
chore(agc): merge current image table prerequisites
brajankw 9b6f245
chore(agc): merge current image table prerequisites
brajankw 66c6565
fix(agc): recollect image tables transferred between threads
brajankw 2738de4
chore(agc): carry transferred image table collection into the stack
brajankw b4e8711
chore(agc): carry transferred image table collection into the stack
brajankw 3e8e2de
chore(agc): carry transferred image table collection into the stack
brajankw 3358049
chore(agc): merge main residency tracing into image table reuse
brajankw cad3778
chore(agc): merge main residency tracing into image table reuse
brajankw a2bf501
chore(agc): merge main residency tracing into image table reuse
brajankw 1938dd5
chore(agc): merge main residency tracing into image table reuse
brajankw 44144ab
chore(agc): merge current main through the image table stack
brajankw cd56db4
chore(agc): merge current main through the image table stack
brajankw 50e416c
chore(agc): merge current main through the image table stack
brajankw 87568d7
chore(agc): merge current main through the image table stack
brajankw 56fbe0c
chore(agc): merge current main through the image table stack
brajankw bae27fd
chore(agc): merge current main through the image table stack
brajankw 6678799
chore(agc): merge current main through the image table stack
brajankw 0fafe61
chore(agc): merge current main through the image table stack
brajankw 388a186
fix(agc): rebuild bindings with unresolved live image entries
brajankw 78298c4
chore(agc): carry image table fixes through the stack
brajankw 664295d
chore(agc): carry image table fixes through the stack
brajankw c9ec550
chore(agc): carry image table fixes through the stack
brajankw 6b9604d
chore(agc): carry image table fixes through the stack
brajankw ef0b9ae
fix(agc): preserve snapshots when private rewatch collection fails
brajankw 01504d9
chore(agc): carry image table fixes through the stack
brajankw 81dd073
chore(agc): carry image table fixes through the stack
brajankw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A failed private rewatch can keep stale sampled texture content.
In the shared-view branch of
WindowsMappings::collect, the write state for a settled subpage is consumed before the caller receives its page. Pages are buffered and returned only after the whole collection succeeds. IfprotectSubpagesfails while arming an alias (WindowsMappings.hpp:844),failthrowsstd::system_error.RewatchPrivatecatches it and returnsfalse(GuestMemory.cpp:3076-3077). That path skips thenoteRefusedWalkrecovery and never stamps the consumed pages. The sampled-texture caller then takes the snapshot path. ItsuntrackedKeycan still match the saved key, sokept()can keep the cached texture (ShaderResources.cpp:1337-1342).Before this change, the same exception reached the caller's rejection handler. Make the failure path invalidate the untracked hint for the range, or record the consumed pages as unreported before returning
false. The exact recovery depends on the rewatch state contract, which is not fully inspected, so no patch is proposed.