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

Merged
tedin7 merged 1 commit from upstream-pr/2295 into main 2026-11-25 11:48:47 +00:00
tedin7 commented 2026-11-25 10:41:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:41:01Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6602609922 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2295). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T10:41:01Z. --- 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 commented 2026-11-25 11:02:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:59:23Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160438804 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2295#issuecomment-7160438804). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T10:59:23Z. --- 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.
chatgpt-codex-connector[bot commented 2026-11-25 11:02:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T10:59:35Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160443182 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2295#issuecomment-7160443182). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T10:59:35Z. --- <!-- 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>
upstream-sync closed this pull request 2026-11-25 12:01:41 +00:00
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!2287
No description provided.