Repository navigation
Conversation
Co-authored-by: Andrei Turcan <360425173+fainty0@users.noreply.github.com>
fretuil
approved these changes
Nov 29, 2026
fretuil
left a comment
There was a problem hiding this comment.
Reviewed a1f619d — looks solid and well-tested overall.
What looks good:
- Handling partial
PROCESS_MEMORY_COUNTERS_EXresponses via both the returnedcbsize check and theUNWRITTENsentinel safely covers both ways Wine can leavePrivateUsageunpopulated. - Retiring compiles in
State::finishwhen either endpoint isNoneprevents polluting the estimator while keepingfinishedcounters accurate. - Tightening
Processandprocess_memoryvisibility to module-private and adding unit tests for shortcbresponses and missing endpoints is very clean.
Minor nits (optional):
- In
State::try_start, initializingpeak_private: private.unwrap_or(0)instead of0would keeppeak_private >= private_at_starttrue before the firstsample()call (even thoughsaturating_subinfinishalready produces the right result). - In
line(), whenp.privateisNone, the log reads"process unavailable private";"process N/A private"or"process private unavailable"might scan a bit more naturally in logs.
1 task done
moritz-eckhard-nickel
added a commit
to moritz-eckhard-nickel/VIctory-NVIDIA
that referenced
this pull request
Nov 30, 2026
… private bytes are unavailable (trustno1-coder#2408) trustno1-coder#2586 by fainty0, head 76fe0e0.
moritz-eckhard-nickel
added a commit
to moritz-eckhard-nickel/VIctory-NVIDIA
that referenced
this pull request
Nov 30, 2026
…bytes (compilemem::process_memory pub(crate)) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #2408
What it changes
Wine can return a short response and leave
PrivateUsageunwritten. Check the returned size and a sentinel; skip estimator updates when either endpoint is unavailable, but still retire the compile. Genuine zero remains valid. Do not substitutePagefileUsage: on Wine the issue's synthetic control saw it rise only after touching the pages, not on commit.How it was tested
829188e: default 5→5 and all-features 4→4 with--keep-going, no added or removed diagnostics. GPU-only Clippy also had no diagnostic changes. Staged asset policy passed.cargo testpassed for the crates it touches: no. The isolated parser unit test passed viarustc --test; full Linux workspace tests are blocked by existing Windows-only imports. Windows tests not run (no Windows); no Proton/runtime verification.Checked for overlap