memory: reserve mapped-page slabs and commit 64 KiB slots on first use #1951

Merged
tedin7 merged 3 commits from upstream-pr/1958 into main 2026-11-24 23:11:08 +00:00
tedin7 commented 2026-11-24 22:07:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T22:07:17Z.


Part of #1199

What this unblocks: startup runs on machines with limited free commit no longer pay 256 MiB of commit per physical-page slab up front, so loading gets further before ERROR_COMMITMENT_LIMIT.

Slabs are now created with SEC_RESERVE. A 64 KiB slot is committed when its page is first mapped or written (commit_slot in src/xmem_mapped_pages.cpp). Pages that are granted but never used cost nothing. A slot that cannot be committed fails the call with the system error and leaves the slab bookkeeping unchanged. Freed slots stay committed, so reuse cannot fail for lack of commit.

Not covered: pages that are mapped but never touched still count, and the DirectStorage worker stack overflow on bad_alloc (item 3 of the issue) is a separate change.

Verification:

  • git diff --stat origin/main...HEAD: 4 files (CMakeLists.txt, src/xmem_mapped_pages.cpp, src/xmem_slab_slots.h, tests/xmem_mapped_pages_commit_check.py).
  • Linux: python -B -c "import ast; ast.parse(...)" on the new check passes; x86_64-w64-mingw32-g++ -fsyntax-only src/xmem_mapped_pages.cpp reports no error in the changed lines (the MSVC-only code elsewhere in the file does not build with MinGW).
  • Win2025: NOT RUN yet (the node needs a pushed PR). To run after push: x2w_pipe.py win2025 <PR> --targets xmem_shim --regex '^xmem_(mapped_pages_commit|page_stats|slab_slots|shim_mapped_pages|shim_page_runs)$'.
  • New check xmem_mapped_pages_commit: maps 16 pages and asserts system commit grows by under 32 MiB (before the change it grows by about 256 MiB, one whole slab), then checks the pages are zero-filled and writable. Numbers before/after still to be filled in from the Win2025 run.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6592366132 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T22:07:17Z. --- Part of #1199 What this unblocks: startup runs on machines with limited free commit no longer pay 256 MiB of commit per physical-page slab up front, so loading gets further before `ERROR_COMMITMENT_LIMIT`. Slabs are now created with `SEC_RESERVE`. A 64 KiB slot is committed when its page is first mapped or written (`commit_slot` in `src/xmem_mapped_pages.cpp`). Pages that are granted but never used cost nothing. A slot that cannot be committed fails the call with the system error and leaves the slab bookkeeping unchanged. Freed slots stay committed, so reuse cannot fail for lack of commit. Not covered: pages that are mapped but never touched still count, and the DirectStorage worker stack overflow on `bad_alloc` (item 3 of the issue) is a separate change. Verification: - `git diff --stat origin/main...HEAD`: 4 files (CMakeLists.txt, src/xmem_mapped_pages.cpp, src/xmem_slab_slots.h, tests/xmem_mapped_pages_commit_check.py). - Linux: `python -B -c "import ast; ast.parse(...)"` on the new check passes; `x86_64-w64-mingw32-g++ -fsyntax-only src/xmem_mapped_pages.cpp` reports no error in the changed lines (the MSVC-only code elsewhere in the file does not build with MinGW). - Win2025: NOT RUN yet (the node needs a pushed PR). To run after push: `x2w_pipe.py win2025 <PR> --targets xmem_shim --regex '^xmem_(mapped_pages_commit|page_stats|slab_slots|shim_mapped_pages|shim_page_runs)$'`. - New check `xmem_mapped_pages_commit`: maps 16 pages and asserts system commit grows by under 32 MiB (before the change it grows by about 256 MiB, one whole slab), then checks the pages are zero-filled and writable. Numbers before/after still to be filled in from the Win2025 run. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-24 23:03:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T22:19:08Z.

Review: CHANGES_REQUESTED


The slot and mapped-page fixture checks pass locally. Please keep the lazy-commit patch within the existing placeholder ownership contract. In map_split, the new unconditional MEM_PRESERVE_PLACEHOLDER can split a caller-owned reservation. If that split succeeds and the retry fails, the caller receives the first map error and is left with a split reservation. Keep the registered-reservation check and preserve the actual retry error when a retry runs. Please add a source-built failure check that observes the placeholder shape with VirtualQuery. The commit test can use a reservation made through XMem or an exactly shaped caller placeholder. Please also update the upfront-commit paragraph in docs/startup-runtime.md, fix the final three PERFORMANCE_INFORMATION fields to DWORD, and make the commit probe catch the eager-commit version without depending solely on a single system-wide delta moving in one direction. Windows placeholder semantics

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6048303497 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#pullrequestreview-6048303497). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T22:19:08Z. **Review:** CHANGES_REQUESTED --- The slot and mapped-page fixture checks pass locally. Please keep the lazy-commit patch within the existing placeholder ownership contract. In `map_split`, the new unconditional `MEM_PRESERVE_PLACEHOLDER` can split a caller-owned reservation. If that split succeeds and the retry fails, the caller receives the first map error and is left with a split reservation. Keep the registered-reservation check and preserve the actual retry error when a retry runs. Please add a source-built failure check that observes the placeholder shape with `VirtualQuery`. The commit test can use a reservation made through XMem or an exactly shaped caller placeholder. Please also update the upfront-commit paragraph in `docs/startup-runtime.md`, fix the final three `PERFORMANCE_INFORMATION` fields to DWORD, and make the commit probe catch the eager-commit version without depending solely on a single system-wide delta moving in one direction. [Windows placeholder semantics](https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualfree)
chatgpt-codex-connector[bot commented 2026-11-24 23:03:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:45:29Z.

Review: COMMENTED


💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0478a38640

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6048581156 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#pullrequestreview-6048581156). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:45:29Z. **Review:** COMMENTED --- <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `0478a38640` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
chatgpt-codex-connector[bot commented 2026-11-24 23:03:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:39:25Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T22:45:31.948383Z 0478a38 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7146490018 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#issuecomment-7146490018). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:39:25Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"0478a3864036fc4c397cc68bf10fd88dd1676d62","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T22:45:31.948383Z">2026-11-24T22:45:31.948383Z</relative-time> | `0478a38` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot commented 2026-11-24 23:03:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:45:29Z.

Code review location: tests/xmem_mapped_pages_commit_check.py; line 66

@@ -0,0 +1,81 @@
+"""Check that opening a physical-page slab does not charge its whole size to system commit (#1199).
+
+Mapping a few pages must commit about those pages, not the 256 MiB slab that holds them.
+usage: xmem_mapped_pages_commit_check.py <xmem_shim.dll>
+"""
+import ctypes as C
+from ctypes import wintypes as W
+from pathlib import Path
+import sys
+
+PAGE_BYTES = 65536
+PHYSICAL_64K = 0x20400000
+WIN_RESERVE = 0x2000
+RESERVE_PLACEHOLDER = 0x40000
+WIN_RELEASE = 0x8000
+NOACCESS = 1
+MAPPED_PAGES = 16
+SLAB_BYTES = 256 << 20
+# Other processes move system commit a little while this runs; a whole slab is 256 MiB.
+LIMIT_BYTES = 32 << 20
+
+
+class PerformanceInformation(C.Structure):
+    _fields_ = [("cb", W.DWORD)] + [(name, C.c_size_t) for name in (
+        "CommitTotal", "CommitLimit", "CommitPeak", "PhysicalTotal", "PhysicalAvailable", "SystemCache",
+        "KernelTotal", "KernelPaged", "KernelNonpaged", "PageSize", "HandleCount", "ProcessCount",
+        "ThreadCount")]
+
+
+def bind(library, name, args, result):
+    function = getattr(library, name)
+    function.argtypes, function.restype = args, result
+    return function
+
+
+def main(path):
+    library = C.WinDLL(str(Path(path).resolve()), use_last_error=True, winmode=0x900)
+    kernel = C.WinDLL("kernelbase.dll", use_last_error=True)
+    psapi = C.WinDLL("kernel32.dll", use_last_error=True)
+    pointer, number = C.c_void_p, C.c_size_t
+    performance = bind(psapi, "K32GetPerformanceInfo", [C.POINTER(PerformanceInformation), W.DWORD], C.c_int)
+    allocate = bind(library, "XMemAllocatePhysicalPages", [number, C.POINTER(number), C.POINTER(number)], C.c_int)
+    release = bind(library, "XMemFreePhysicalPages", [number, C.POINTER(number)], C.c_int)
+    contiguous = bind(library, "XMemMapPhysicalPages", [pointer, number, C.POINTER(number)], pointer)
+    reserve = bind(kernel, "VirtualAlloc2", [pointer, pointer, number, C.c_ulong, C.c_ulong, pointer, C.c_ulong],
+                   pointer)
+    free = bind(kernel, "VirtualFree", [pointer, number, C.c_ulong], C.c_int)
+
+    def commit_bytes():
+        info = PerformanceInformation()
+        info.cb = C.sizeof(info)
+        assert performance(C.byref(info), info.cb), C.get_last_error()
+        return info.CommitTotal * info.PageSize
+
+    size = MAPPED_PAGES * PAGE_BYTES
+    base = reserve(pointer(-1), None, size, WIN_RESERVE | RESERVE_PLACEHOLDER, NOACCESS, None, 0)
+    assert base, C.get_last_error()
+    count, pages = number(MAPPED_PAGES), (number * MAPPED_PAGES)()
+    try:
+        assert allocate(PHYSICAL_64K, C.byref(count), pages) and count.value == MAPPED_PAGES
+        before = commit_bytes()
+        mapped = contiguous(base, MAPPED_PAGES, pages)
+        assert mapped == base, C.get_last_error()
+        grown = commit_bytes() - before
+        print(f"commit grew by {grown >> 20} MiB for {MAPPED_PAGES} mapped pages (a slab is {SLAB_BYTES >> 20} MiB)")
+        assert grown < LIMIT_BYTES, f"mapping {MAPPED_PAGES} pages committed {grown >> 20} MiB: the slab is charged whole"

P1 Badge Add a negative control or failure case for the commit fixture

CMakeLists.txt registers this new fixture only against the production shim, and a repository-wide search for the fixture name, commit_slot, and SEC_COMMIT found no negative-control or injected-failure run. Consequently, the fixture is never demonstrated to reject an eagerly committed slab, and the new commitment-failure path is not exercised. AGENTS.md requires “a negative control or failure case for a new fixture”; add an eager-commit control that must fail this assertion, or force a commitment failure and verify the returned error and accounting.

AGENTS.md reference: AGENTS.md:L192-L192

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687561936 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#discussion_r4687561936). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:45:29Z. **Code review location:** `tests/xmem_mapped_pages_commit_check.py`; line 66 ~~~~diff @@ -0,0 +1,81 @@ +"""Check that opening a physical-page slab does not charge its whole size to system commit (#1199). + +Mapping a few pages must commit about those pages, not the 256 MiB slab that holds them. +usage: xmem_mapped_pages_commit_check.py <xmem_shim.dll> +""" +import ctypes as C +from ctypes import wintypes as W +from pathlib import Path +import sys + +PAGE_BYTES = 65536 +PHYSICAL_64K = 0x20400000 +WIN_RESERVE = 0x2000 +RESERVE_PLACEHOLDER = 0x40000 +WIN_RELEASE = 0x8000 +NOACCESS = 1 +MAPPED_PAGES = 16 +SLAB_BYTES = 256 << 20 +# Other processes move system commit a little while this runs; a whole slab is 256 MiB. +LIMIT_BYTES = 32 << 20 + + +class PerformanceInformation(C.Structure): + _fields_ = [("cb", W.DWORD)] + [(name, C.c_size_t) for name in ( + "CommitTotal", "CommitLimit", "CommitPeak", "PhysicalTotal", "PhysicalAvailable", "SystemCache", + "KernelTotal", "KernelPaged", "KernelNonpaged", "PageSize", "HandleCount", "ProcessCount", + "ThreadCount")] + + +def bind(library, name, args, result): + function = getattr(library, name) + function.argtypes, function.restype = args, result + return function + + +def main(path): + library = C.WinDLL(str(Path(path).resolve()), use_last_error=True, winmode=0x900) + kernel = C.WinDLL("kernelbase.dll", use_last_error=True) + psapi = C.WinDLL("kernel32.dll", use_last_error=True) + pointer, number = C.c_void_p, C.c_size_t + performance = bind(psapi, "K32GetPerformanceInfo", [C.POINTER(PerformanceInformation), W.DWORD], C.c_int) + allocate = bind(library, "XMemAllocatePhysicalPages", [number, C.POINTER(number), C.POINTER(number)], C.c_int) + release = bind(library, "XMemFreePhysicalPages", [number, C.POINTER(number)], C.c_int) + contiguous = bind(library, "XMemMapPhysicalPages", [pointer, number, C.POINTER(number)], pointer) + reserve = bind(kernel, "VirtualAlloc2", [pointer, pointer, number, C.c_ulong, C.c_ulong, pointer, C.c_ulong], + pointer) + free = bind(kernel, "VirtualFree", [pointer, number, C.c_ulong], C.c_int) + + def commit_bytes(): + info = PerformanceInformation() + info.cb = C.sizeof(info) + assert performance(C.byref(info), info.cb), C.get_last_error() + return info.CommitTotal * info.PageSize + + size = MAPPED_PAGES * PAGE_BYTES + base = reserve(pointer(-1), None, size, WIN_RESERVE | RESERVE_PLACEHOLDER, NOACCESS, None, 0) + assert base, C.get_last_error() + count, pages = number(MAPPED_PAGES), (number * MAPPED_PAGES)() + try: + assert allocate(PHYSICAL_64K, C.byref(count), pages) and count.value == MAPPED_PAGES + before = commit_bytes() + mapped = contiguous(base, MAPPED_PAGES, pages) + assert mapped == base, C.get_last_error() + grown = commit_bytes() - before + print(f"commit grew by {grown >> 20} MiB for {MAPPED_PAGES} mapped pages (a slab is {SLAB_BYTES >> 20} MiB)") + assert grown < LIMIT_BYTES, f"mapping {MAPPED_PAGES} pages committed {grown >> 20} MiB: the slab is charged whole" ~~~~ --- **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Add a negative control or failure case for the commit fixture** `CMakeLists.txt` registers this new fixture only against the production shim, and a repository-wide search for the fixture name, `commit_slot`, and `SEC_COMMIT` found no negative-control or injected-failure run. Consequently, the fixture is never demonstrated to reject an eagerly committed slab, and the new commitment-failure path is not exercised. `AGENTS.md` requires “a negative control or failure case for a new fixture”; add an eager-commit control that must fail this assertion, or force a commitment failure and verify the returned error and accounting. AGENTS.md reference: [AGENTS.md:L192-L192](https://github.com/R0Y00/Xbox2Windows/blob/0478a3864036fc4c397cc68bf10fd88dd1676d62/AGENTS.md#L192-L192) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
chatgpt-codex-connector[bot commented 2026-11-24 23:03:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:45:29Z.

Code review location: src/xmem_mapped_pages.cpp; line 144

@@ -114,6 +132,19 @@ auto owned_reservation(ULONG_PTR address)
     return address - it->first < it->second ? it : memory.reservations.end();
 }
 
+// MEM_REPLACE_PLACEHOLDER needs a placeholder of exactly the view's size. When the range sits inside a
+// larger placeholder (ours or the caller's), split it off first and map again. If the split is refused
+// the range is not a placeholder, so the error of the first map is the one to report.
+template <class Map>
+bool map_split(void* target, SIZE_T bytes, Map map)
+{
+    if (map()) return true;
+    const DWORD error = GetLastError();
+    if (VirtualFree(target, bytes, MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER) && map()) return true;
+    SetLastError(error);

P2 Badge Preserve the retry error after a successful placeholder split

When mapping a subrange of a larger placeholder, the first mapping fails because the placeholder has the wrong size. If splitting succeeds but the subsequent map() fails—for example, because Windows cannot allocate resources for the view—this unconditional reset discards the retry’s error and reports the earlier size-mismatch error. map_pages propagates that stale error through both public mapping exports, obscuring the actual resource failure. Restore the saved error only when VirtualFree refuses the split; otherwise preserve the failed retry’s GetLastError().

Useful? React with 👍 / 👎.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review-comment:4687561946 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#discussion_r4687561946). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T22:45:29Z. **Code review location:** `src/xmem_mapped_pages.cpp`; line 144 ~~~~diff @@ -114,6 +132,19 @@ auto owned_reservation(ULONG_PTR address) return address - it->first < it->second ? it : memory.reservations.end(); } +// MEM_REPLACE_PLACEHOLDER needs a placeholder of exactly the view's size. When the range sits inside a +// larger placeholder (ours or the caller's), split it off first and map again. If the split is refused +// the range is not a placeholder, so the error of the first map is the one to report. +template <class Map> +bool map_split(void* target, SIZE_T bytes, Map map) +{ + if (map()) return true; + const DWORD error = GetLastError(); + if (VirtualFree(target, bytes, MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER) && map()) return true; + SetLastError(error); ~~~~ --- **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Preserve the retry error after a successful placeholder split** When mapping a subrange of a larger placeholder, the first mapping fails because the placeholder has the wrong size. If splitting succeeds but the subsequent `map()` fails—for example, because Windows cannot allocate resources for the view—this unconditional reset discards the retry’s error and reports the earlier size-mismatch error. `map_pages` propagates that stale error through both public mapping exports, obscuring the actual resource failure. Restore the saved error only when `VirtualFree` refuses the split; otherwise preserve the failed retry’s `GetLastError()`. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
upstream-sync closed this pull request 2026-11-25 00:04:44 +00:00
R0Y00 commented 2026-11-25 00:04:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:10:57Z.

Review: APPROVED


Verified the scoped ownership and retry fixes and the injected commit failure on this exact head. Windows Release passed the six focused tests. The external reservation retains its shape, and a failed fresh commit preserves the counts and can be retried.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6048877082 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#pullrequestreview-6048877082). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T23:10:57Z. **Review:** APPROVED --- Verified the scoped ownership and retry fixes and the injected commit failure on this exact head. Windows Release passed the six focused tests. The external reservation retains its shape, and a failed fresh commit preserves the counts and can be retried.
R0Y00 commented 2026-11-25 01:01:51 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:07:50Z.


Restored the mapper-owned split check and retained the actual retry error. The new source-built failure control forces ERROR_COMMITMENT_LIMIT, verifies the reserved region and slab counts remain unchanged, and retries the same grant successfully. The external placeholder shape also stays intact. Windows Release passed all six focused checks. The local commit comparison was 256 MiB on the eager-commit baseline versus 1 MiB for the same 16 mapped pages on this branch. This is a system-wide counter sample, with a separate deterministic failure control.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147047767 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1958#issuecomment-7147047767). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T23:07:50Z. --- Restored the mapper-owned split check and retained the actual retry error. The new source-built failure control forces ERROR_COMMITMENT_LIMIT, verifies the reserved region and slab counts remain unchanged, and retries the same grant successfully. The external placeholder shape also stays intact. Windows Release passed all six focused checks. The local commit comparison was 256 MiB on the eager-commit baseline versus 1 MiB for the same 16 mapped pages on this branch. This is a system-wide counter sample, with a separate deterministic failure control.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1951
No description provided.