Repository navigation
test(agc): reserve the image table cache test range above the guest arena on Windows - #19531
Conversation
…rena on Windows agc_driver_image_table_cache reserves a range with VirtualAlloc, captures while its second page is uncommitted, commits that page and captures again. On Windows the reservation lands at a low address inside the guest arena range, so GuestMemory caches the second page as inaccessible, and the direct VirtualAlloc commit does not invalidate that cache. The second capture still reports the records as Unmapped and the test fails with "a result without Unmapped entries is not cacheable". Reserve with MEM_TOP_DOWN so the range lies above the arena, as the mmap range does on Linux.
|
Windows check of head
AI-assisted: yes. |
|
Confirmation on a machine where Setup: Windows 11 25H2 (build 26200), two GPUs in the same machine, each selected with
AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above). |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The reviewed change at d627686a0494df5c12d4e1bf7604c2e3d6107d94 applies MEM_TOP_DOWN to the Windows test reservation; the inspected test flow supports the stated fix, and no blocking defect was found.
What I ran
Read the prepared description, commits, manifest, diff, and the changed file at the pinned head. No tests or builds were run.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | One changed file inspected |
| Tests and build | not run | Author-reported results only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author-reported Windows runs and CI results were not independently verified. The prepared bundle did not provide files.json; the manifest listed one changed file, and its full text was read through repo_read.py.
To get this to a good state
Nothing is required.
What
agc_driver_image_table_cachefails on Windows with "image table cache: a result without Unmapped entries is not cacheable".The test reserves a range with
VirtualAlloc(nullptr, ...), captures while its second page is uncommitted, commits that page and captures again. On Windows the reservation lands at a low address (0x5b0000 here) inside the guest arena range (base 0x10000, size 0xfbffff0000 in the test process), soGuestMemorycaches the second page as inaccessible. The test commits the page withVirtualAllocdirectly, which does not invalidate that cache, soGuestMemory::Accessiblestill returns false for it and the second capture reports records 2 and 3 as Unmapped again.The reservation now uses
MEM_TOP_DOWN, which places it above the arena, as themmaprange is on Linux. The Windows CI job builds only three AGC execution tests, so it does not run this one.Tested
Windows 11 (10.0.26300), WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh r7), i5-13600KF.
agc_driver_image_table_cachefailed in 5 of 5 runs on edb7d91.--repeat until-fail:10. The branch was rebased onto a newermainafterwards without another run;maindid not change this file in between.tools/check_conventions.py --base origin/mainpasses;tools/pr_overlap.py --branchreports no overlap with 1503 open pull requests.Not tested on Linux or macOS; the change is inside
#ifdef _WIN32.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)