tests: open the unified_buffer_paths section heap from a mapped view (#2234) #2295

Manually merged
github merged 1 commit from gh-pr/2295/head into gh-pr/2295/base 2026-11-27 00:13:27 +00:00
Owner

@⁠tedin7 on GitHub · 2026-11-25 10:41 UTC · original
tedin7:x2w-w4-2234-heap-from-address → main · +15 −8 · 2 files · 1 commits · merged 2026-11-25 11:48 UTC

Part of #2234

What this unblocks: the ordinary test suite stops opening the unified_buffer_paths heap with OpenExistingHeapFromFileMapping, the path that leaks Windows commit on the affected build.

Changes:

  • tests/unified_buffer_paths_check.cpp: the section pool keeps one whole-pool mapped view and opens its shared heap with OpenExistingHeapFromAddress on it. Same bytes, cross-queue and reuse controls are unchanged. The view is unmapped after the heap is released. The refusal probes that go through a FILE_MAP_READ handle still run, since they fail and open no heap.
  • docs/experiments.md: the share row names the address path.

Not done here: the baseline vs post-exit commit measurement and a separate manual FromFileMapping child. Those need the affected Windows build. vm_copy_queue and vm_translation are left as separate follow-ups, as discussed on the issue. The issue stays open for other Windows builds.

Verification:

  • git diff --check: clean.
  • Win2025 WARP dev+release: see the verification comment below.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 10:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2295) `tedin7:x2w-w4-2234-heap-from-address` → `main` · +15 −8 · 2 files · 1 commits · merged 2026-11-25 11:48 UTC Part of #2234 What this unblocks: the ordinary test suite stops opening the `unified_buffer_paths` heap with `OpenExistingHeapFromFileMapping`, the path that leaks Windows commit on the affected build. Changes: - `tests/unified_buffer_paths_check.cpp`: the section pool keeps one whole-pool mapped view and opens its shared heap with `OpenExistingHeapFromAddress` on it. Same bytes, cross-queue and reuse controls are unchanged. The view is unmapped after the heap is released. The refusal probes that go through a `FILE_MAP_READ` handle still run, since they fail and open no heap. - `docs/experiments.md`: the `share` row names the address path. Not done here: the baseline vs post-exit commit measurement and a separate manual `FromFileMapping` child. Those need the affected Windows build. `vm_copy_queue` and `vm_translation` are left as separate follow-ups, as discussed on the issue. The issue stays open for other Windows builds. Verification: - `git diff --check`: clean. - Win2025 WARP dev+release: see the verification comment below. AI-assisted; commands listed were executed locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:13:25 +00:00
github manually merged commit d5cbfbc3b9 into gh-pr/2295/base 2026-11-27 00:13:27 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 10:59 UTC · original

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207, D3D12 WARP) at d5cbfbc3b91af13f48067a3dfad987c138261024:

  • python3 /root/.local/state/xbox2windows/pipeline/x2w_pipe.py win2025 2295 --force (default 3-slot pool), exit 0.
  • Debug (--preset dev): unified_buffer_paths_check built, ctest -R '^unified_buffer_paths_' 4/4 passed (unified_buffer_paths_warp, _skip_refresh_control, _skip_copy_back_control, _reuse_early_control).
  • Release (--preset release): same build and ctest, 4/4 passed.
  • gh pr checks 2295: all pass (Linux Python checks, Build and test on Windows, gfx1013 fixtures); the /O2 and coverage jobs are skipped by the workflow.
  • Scope trimmed to unified_buffer_paths plus the docs/experiments.md row, per the issue. vm_copy_queue and vm_translation stay as separate follow-ups.
  • Not done here: the baseline vs post-exit commit measurement and the separate manual FromFileMapping child. They need the affected Windows build.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 10:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2295#issuecomment-7160438804) Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207, D3D12 WARP) at `d5cbfbc3b91af13f48067a3dfad987c138261024`: - `python3 /root/.local/state/xbox2windows/pipeline/x2w_pipe.py win2025 2295 --force` (default 3-slot pool), exit 0. - Debug (`--preset dev`): `unified_buffer_paths_check` built, `ctest -R '^unified_buffer_paths_'` 4/4 passed (`unified_buffer_paths_warp`, `_skip_refresh_control`, `_skip_copy_back_control`, `_reuse_early_control`). - Release (`--preset release`): same build and `ctest`, 4/4 passed. - `gh pr checks 2295`: all pass (Linux Python checks, Build and test on Windows, gfx1013 fixtures); the /O2 and coverage jobs are skipped by the workflow. - Scope trimmed to `unified_buffer_paths` plus the `docs/experiments.md` row, per the issue. `vm_copy_queue` and `vm_translation` stay as separate follow-ups. - Not done here: the baseline vs post-exit commit measurement and the separate manual `FromFileMapping` child. They need the affected Windows build. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 10:59 UTC · original · edited 2026-11-25 11:01 UTC

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-25T11:01:29.628886Z d5cbfbc 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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 10:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2295#issuecomment-7160443182) · edited 2026-11-25 11:01 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"d5cbfbc3b91af13f48067a3dfad987c138261024","has_any_findings":false,"has_unresolved_findings":false,"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-25T11:01:29.628886Z">2026-11-25T11:01:29.628886Z</relative-time> | `d5cbfbc` | 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>
This discussion has been locked. Commenting is limited to contributors.
No description provided.