runtime: test every graphics memory type at the granularity boundary #359
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/365"
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 grahamster2 on 2026-11-21T23:28:36Z.
Advances the README "Windows runtime" row: a source-built allocation case with a measurable Windows result.
What
New
era_heap_graphics_typesscenario. Graphics memory types 1–6 × page sizes 4 KB/64 KB × alignment exponents 0/4/8/16 × sizes 1 and granularity+1. Each block must start on the allocation granularity, be zeroed and writable, and be reported byVirtualQueryas the base of its own committed private read/write allocation; afterrelease_with_attributesit must beMEM_FREE. Negative controls per type: 4 MB pages, exponent 17 and page size 3 return null. Exponent 16 checks the 64 KiB boundary itself.Before this, only type 5 (the AMD word) had a positive graphics test.
Evidence
Commit:
bab6fdb, Windows 11 Pro build 26200, VS Build Tools 2026 18.3 (MSVC 19.50.35725), Windows SDK 10.0.26100.Full suite at the same commit (excluding the three
tests/intakecases): 144 run, 0 failed, 3 capability skips (bvh_wave64_hardwareon RTX 3080 lane range 32..32;bvh_wave64_warpandwave_shuffle_warpon WARP lane range 4..4).Mutation checks on
src/era_heap.cpp(reverted, not part of this PR):>→>=at the granularity comparison:era_heap_graphics_typesfails (type 1, exponent 16 refused);era_heap_observed_wordsalso fails.graphics_last6 → 5: onlyera_heap_graphics_typesfails (type 6 refused).Scope
Desktop policy only. The console semantics of the graphics types stay open in #126.
🤖 Generated with Claude Code
AI-assisted (Claude Code).