Fix review findings on #2: fence events after held runs, late async results #3

Manually merged
github merged 2 commits from gh-pr/3/head into gh-pr/3/base 2026-11-26 05:56:59 +00:00
Owner

@⁠TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
TaynanGT:historico/victory-windows-3-head → historico/victory-windows-3-base · +61 −35 · 6 files · 2 commits · merged 2026-11-25 08:47 UTC

Summary

Fixes from a code review of #2, pushed after #2 was merged.

  • Fence events after held runs. release_held looked at the events waiting for fences only before it ran what queues held. Without late submissions, a held list's bottom-of-pipe write into a fence then woke nobody until some later submit or signal. A title thread waiting on that event could hang if it was the one that would submit next. The events are looked at again once something ran.
  • Late result of a cancelled async call. pending_with's thread checked that its call was still the block's, then completed by the block's address. A cancel and a new XAsyncBegin on the block in between got the old result. It now completes that call alone (complete_call), its own done flag deciding: a cancel sets it, under its lock, before the block is free for another call.
  • Heap pass once per list and heap. heap_buffers was keyed once per list, so a list that binds a second view heap never ran that heap's pass nor kept its table (a freed table could be read in flight). Keyed per list and heap now.
  • join_placeholders skips its two VirtualQueryEx calls for a range inside one 64 KiB granule (the single-page maps of page-mapping copies).
  • victory translate no longer drops a shader named in VICTORY_WAVE_WIDE_ONLY as a duplicate of the same code unnamed.
  • SUBMISSION_US has its doc back (PREPARE_SPLIT's had been put between them), and the frame line no longer calls the copies part of the deferred steps alone.

Not changed (from the same review, minor):

  • in_place_let_go in shadow.rs walks every loose window below the range's end on each remap.
  • a_cancelled_pending_call_drops_its_late_result waits 100 ms for the work thread, so under load it can pass without testing the race.

Verification

  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, with and without --all-features, passes (cross-checked from Linux).
  • The Windows-only tests (xasync, fence, xmem) run in this PR's CI.

Generated by Claude Code

Origem TaynanGT/victory-windows#3, aberto por TaynanGT em 11/25/2026 08:04:53.
Integração original em 11/25/2026 08:05:51, commit 2146f54.

**@⁠TaynanGT** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/3) `TaynanGT:historico/victory-windows-3-head` → `historico/victory-windows-3-base` · +61 −35 · 6 files · 2 commits · merged 2026-11-25 08:47 UTC ## Summary Fixes from a code review of #2, pushed after #2 was merged. - **Fence events after held runs.** `release_held` looked at the events waiting for fences only before it ran what queues held. Without late submissions, a held list's bottom-of-pipe write into a fence then woke nobody until some later submit or signal. A title thread waiting on that event could hang if it was the one that would submit next. The events are looked at again once something ran. - **Late result of a cancelled async call.** `pending_with`'s thread checked that its call was still the block's, then completed by the block's address. A cancel and a new `XAsyncBegin` on the block in between got the old result. It now completes that call alone (`complete_call`), its own `done` flag deciding: a cancel sets it, under its lock, before the block is free for another call. - **Heap pass once per list and heap.** `heap_buffers` was keyed once per list, so a list that binds a second view heap never ran that heap's pass nor kept its table (a freed table could be read in flight). Keyed per list and heap now. - `join_placeholders` skips its two `VirtualQueryEx` calls for a range inside one 64 KiB granule (the single-page maps of page-mapping copies). - `victory translate` no longer drops a shader named in `VICTORY_WAVE_WIDE_ONLY` as a duplicate of the same code unnamed. - `SUBMISSION_US` has its doc back (`PREPARE_SPLIT`'s had been put between them), and the frame line no longer calls the copies part of the deferred steps alone. Not changed (from the same review, minor): - `in_place_let_go` in `shadow.rs` walks every loose window below the range's end on each remap. - `a_cancelled_pending_call_drops_its_late_result` waits 100 ms for the work thread, so under load it can pass without testing the race. ## Verification - `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings`, with and without `--all-features`, passes (cross-checked from Linux). - The Windows-only tests (`xasync`, `fence`, `xmem`) run in this PR's CI. --- _Generated by [Claude Code](https://claude.ai/code)_ <!-- migracao:victory-windows#3 --> Origem [TaynanGT/victory-windows#3](https://github.com/TaynanGT/victory-windows/pull/3), aberto por [TaynanGT](https://github.com/TaynanGT) em 11/25/2026 08:04:53. Integração original em 11/25/2026 08:05:51, commit [2146f54](https://github.com/TaynanGT/VIctory/commit/2146f549f3df4313931d5911e2413fbe823a20ff).
- release_held looked at the events waiting for fences only before it
  ran what queues held; without late submissions a held list's
  bottom-of-pipe write into a fence then woke nobody until some later
  call. They are looked at again once something ran.
- A pending_with call's thread checked that its call was still the
  block's and then completed by the block's address: a cancel and a new
  call on the block in between got the old result. It now completes
  that call alone, its own done flag deciding.
- The heap pass was keyed once per list, so a list that binds a second
  view heap never ran that heap's pass nor kept its table; keyed per
  list and heap now.
- join_placeholders skips its two queries for a range inside one 64 KiB
  granule (the single-page maps of page-mapping copies).
- victory translate no longer drops a shader named in
  VICTORY_WAVE_WIDE_ONLY as a duplicate of the same code unnamed.
- SUBMISSION_US has its doc back (PREPARE_SPLIT's had been put between
  them), and the frame line no longer calls the copies a part of the
  deferred steps alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:56:57 +00:00
github manually merged commit c1b002fcaa into gh-pr/3/base 2026-11-26 05:56:59 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-25 08:47 UTC · original

Comentário original de chatgpt-codex-connector[bot] em 11/25/2026 08:05:50. Ver original.

<!-- codex-pull-request-review-summary -->
<!-- codex-review-state:v1 {"code_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} -->
<!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","mergeGateEnabled":false,"pullRequestNumber":3,"repository":"TaynanGT/victory-windows","status":"completed"} -->
<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-25T08:06:58.797997Z">2026-11-25T08:06:58.797997Z</relative-time> | `c1b002f` | Draft marked ready |
| 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-25T08:07:31.255465Z">2026-11-25T08:07:31.255465Z</relative-time> | `c1b002f` | 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>
**@⁠TaynanGT** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/3#issuecomment-7157473944) Comentário original de `chatgpt-codex-connector[bot]` em 11/25/2026 08:05:50. [Ver original](https://github.com/TaynanGT/victory-windows/pull/3#issuecomment-7156602079). ``` <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","mergeGateEnabled":false,"pullRequestNumber":3,"repository":"TaynanGT/victory-windows","status":"completed"} --> <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-25T08:06:58.797997Z">2026-11-25T08:06:58.797997Z</relative-time> | `c1b002f` | Draft marked ready | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-25T08:07:31.255465Z">2026-11-25T08:07:31.255465Z</relative-time> | `c1b002f` | 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> ``` <!-- migracao:comentario-7156602079 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 08:47 UTC · original

To use Codex here, create an environment for this repo.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/3#issuecomment-7157477291) To use Codex here, [create an environment for this repo](https://chatgpt.com/codex/cloud/settings/environments).
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 08:47 UTC · original

Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T08:47:56.918570Z
We couldn’t complete this review. Comment @codex review to try again.
c1b002f PR opened
🔒 Security Review ❌ Failed 2026-11-25T08:47:58.723651Z
We couldn’t complete this review. Comment @codex security review to try again.
c1b002f PR opened
ℹ️ 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 08:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/3#issuecomment-7157476901) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"c1b002fcaac4a3df2ed235e081504bde5234eca5","mergeGateEnabled":false,"pullRequestNumber":3,"repository":"TaynanGT/Vice-Tay","status":"failed"} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-25T08:47:56.918570Z">2026-11-25T08:47:56.918570Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `c1b002f` | PR opened | | 🔒 **Security Review** | ❌ **Failed** <relative-time datetime="2026-11-25T08:47:58.723651Z">2026-11-25T08:47:58.723651Z</relative-time><br/>We couldn’t complete this review. Comment `@codex security review` to try again. | `c1b002f` | PR opened | <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.