tests: open the vm_translation_check section heaps from a mapped view #2385
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2393"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by JVProg on 2026-11-25T15:04:48Z.
Change
vm_translation_checknow opens its two 64 KiB section heaps (SectionBuffer, used by therangescenario) withOpenExistingHeapFromAddresson the mapped view, instead ofOpenExistingHeapFromFileMapping. On the affected build, the old call left these sections committed after the process exited. The destructor already releases the placed buffer and the heap before it unmaps the view, and it runs after the fixture has waited for the queue, so that order is unchanged. One sentence indocs/experiments.mdrecords the choice.vm_copy_queue_checkis not changed: its growth stayed within the idle drift.Refs #2234. Follows #2295. Baseline report: https://github.com/R0Y00/Xbox2Windows/issues/2234#issuecomment-7165456279
Verification
Commit
9bb4a441(base15b89898; tests and measurements ran on the same change before it was committed),releasepreset. Windows 11 build 26300, WARP and AMD Radeon RX 9070 XT (1002:7550, driver 32.0.32029.2010). The fixture does not enable the D3D12 debug layer.11/11 passed, no skips. I also ran
range_warpandrange_hardwaredirectly: both exit 0 withrange failures=0; the offset, neighbour-tile, staging-write and Close checks all reportok.Manual commit measurement (not part of CTest): system-wide
SharedCommittedPagesfromNtQuerySystemInformation(SystemPerformanceInformation), read before and after 1000 sequential runs (median of 5 samples, after a 3 s wait). All runs exited 0. Not measured from a fresh reboot.range_warprange_hardwareAbout 128 MiB is expected per batch if both sections stay committed.
Controls measured with the change:
device_hardware(same adapter, creates no pagefile section), two batches: +10.14, -2.27 MiB.The first
range_hardwarebatch after the change read +45.60 MiB, above these controls. The next three batches were negative, so I did not see steady per-run growth. The counter is system-wide, so background activity affects it; I did not isolate the cause of that first reading. The "before" figures come from an earlier session on the same host, with idle controls of -3.20 and +3.51 MiB.Not run: the rest of the test suite, the
devpreset, and other adapters or Windows builds.Evidence and follow-up
No new fixture. Commit sampling stays out of CI.
AI-assisted (Claude Code).