test: construct a reserved prefix for placed buffer checks #1937
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1937
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1937/head"
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?
@SuperCraft3M on GitHub · 2026-11-24 21:55 UTC · original
SuperCraft3M:test/placed-buffer-heap-layout→main· +22 −11 · 1 files · 1 commits · merged 2026-11-24 22:06 UTCFollow-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.@tedin7 on GitHub · 2026-11-24 22:05 UTC · original · reviewed
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.