test: construct a reserved prefix for placed buffer checks #1930
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1937"
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 SuperCraft3M on 2026-11-24T21:55:31Z.
Follow-up to #1766.
On Windows 11 build 26300.9711, the heap-block case can start with committed pages. Both implementations then correctly return alias=1, while the fixture assumes a reserved prefix and expects 0. Keep the heap comparison against the full walk on the observed layout. Construct a separate reservation whose first 64 KiB is reserved and second 64 KiB is committed, with fixed refusals for a buffer in that suffix and one extending past the allocation.
Tested on Windows 11 build 26300.9711 using:
All three cases passed on the local integration of
6ef541f3. The region-only negative control still accepts the reserved-prefix placement and the walk-only control still fails the zero-query cost check. The large-page subcase was unavailable due to Win32 error 1314.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:05:16Z.
Review: COMMENTED
Review of head
6ef541f3eface0a0ca41e54157a77fcfed2c77b9. No P1, no P2.Change: test-only (
tests/startup_placed_buffer_range_check.cpp). The heap case now compares the allocator's observed layout against the full walk (expect = -1), and the reserved-prefix case is built explicitly with VirtualAlloc (reserve 2 x 64 KiB, commit the second). No CMake change, no source change, clean-room.Commands executed locally:
git merge-tree --write-tree --name-only origin/main HEAD: clean, no conflictspython3 tests/docs_links_check.py: PASS (18 files, 386 links)python3 tests/bidi_controls_check.py: PASSgit diff --check origin/main...HEAD: PASSstartup_placed_buffer_rangeand both controls (region_only, walk_only) 3/3 PASSMutations (applied on Win2025 via patch, then reverted):
placed_buffer_range.hwalk: dropregion.State != MEM_COMMIT. Killed: main test 8 failures, walk_only control also fails.placed_buffer_range.hregion path:out.covered = trueinstead of the width check. Killed: main test 4 failures, region_only control fails.AI-assisted; commands listed were executed locally.