D3D12.X: drop a heap's, queue's and allocator's books before last Release #2691

Closed
sage-sage wants to merge 1 commit from upstream-pr/2701 into main
sage-sage commented 2026-11-26 07:12:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by sage-sage on 2026-11-26T07:12:57Z.


heap_release, mem_heap_release, q_release and alloc_release (real.rs) call the driver's Release first and, when it returns 0, remove what XCL keeps by the object's address. By then the driver has freed the object, and another thread can already have a new one at that address with its own entries recorded; the cleanup removes those. For an ID3D12Heap that is worse than lost bookkeeping: mem_heap_release takes the new heap's HEAP_UMA entry and frees its block of unified memory while the new heap's buffers live in it. A descriptor heap made at a freed one's address loses its console slots, a queue or an allocator its list_x / alloc_pool entries.

The command list and pipeline releases have the same order (#2690); #2691, #1453 and #2422 change those, and this PR does the other four. It uses the same check as res_release, #2691 and #2422 (the last reference is the one AddRef sees as 2). #1457, #1648 and #2086 also change mem_heap_release (for buffers that outlive their heap, a different problem); whichever goes in second needs a small merge there.

What is in it

  • real.rs: release_taking_first(this, take, after) takes a reference first; when AddRef returns 2 the caller holds the last one, so take removes the entries while the address is still this object's, the two references are released, and after frees what must outlive the object (the heap's memory block, a descriptor heap's slots and shadow), after the last Release as before. When two last-but-one releases run at once, both see AddRef above 2; the one whose Release ends at 0 then takes the entries after the object is gone, as main does, so nothing is left behind (the address-reuse window stays open only in that case, as in #2691 and res_release). The four hooks use it.
  • console_heap.rs: unregister is split into take and free for that; unregister itself is unchanged for its other callers.
  • Tests in real.rs (release_order_tests), on a fake object whose last Release records an entry at its address as a new object there would: mem_heap_release_keeps_a_new_heap_at_the_freed_address fails on main (dropped the heap made at the freed address) and pass with this change; take_runs_before_the_last_release_and_after_once_it_is_gone checks the helper's order; two_last_releases_at_once_take_the_entries_once makes two threads' AddRefs meet at a barrier and checks the entries are taken exactly once (it fails, left: (0, 0), without the fallback).

Tested

  • RTX 4080 SUPER (driver 621.40), Ryzen 5 7600X, Windows 11 26H2 build 26300.10075, rustc 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug build, base b49be18, head 9e305ed
  • cargo test --workspace -- --test-threads=4: 1438 passed, 0 failed, 47 ignored; the three release_order_tests pass
  • the heap test against main's mem_heap_release (this branch's test and helper on main's real.rs): it fails
  • SKIPPED on this adapter: the wave64 tests (NVIDIA, wave32 only), the D3D12 debug layer tests (d3d12SDKLayers.dll not installed), pso_measurement_compiles_an_exact_synthetic_record (Developer Mode off), no heap windows

Regression run

  • None: I own no Series X|S title to run scripts/smoke.ps1 on. This changes the runtime, so it needs a smoke run from someone who has one.

Not tested

  • Any game: no xcl-smoke run, and no title that I know of shows the race (it needs a release and a create on two threads at once with the allocator handing back the address).
  • heap_release, q_release and alloc_release have no test of their own; they use the same helper, which is tested.
  • AMD / Intel GPUs, a release build.

AI use

  • Claude Code, Claude Opus 5.5: found the order while checking the release hooks after a command list fix (the same one as #2691), wrote the change and the tests, ran the tests and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5505662491 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701). Originally posted by [sage-sage](https://github.com/sage-sage) on 2026-11-26T07:12:57Z. --- `heap_release`, `mem_heap_release`, `q_release` and `alloc_release` (`real.rs`) call the driver's `Release` first and, when it returns 0, remove what XCL keeps by the object's address. By then the driver has freed the object, and another thread can already have a new one at that address with its own entries recorded; the cleanup removes those. For an `ID3D12Heap` that is worse than lost bookkeeping: `mem_heap_release` takes the new heap's `HEAP_UMA` entry and frees its block of unified memory while the new heap's buffers live in it. A descriptor heap made at a freed one's address loses its console slots, a queue or an allocator its `list_x` / `alloc_pool` entries. The command list and pipeline releases have the same order (#2690); #2691, #1453 and #2422 change those, and this PR does the other four. It uses the same check as `res_release`, #2691 and #2422 (the last reference is the one `AddRef` sees as 2). #1457, #1648 and #2086 also change `mem_heap_release` (for buffers that outlive their heap, a different problem); whichever goes in second needs a small merge there. **What is in it** - `real.rs`: `release_taking_first(this, take, after)` takes a reference first; when `AddRef` returns 2 the caller holds the last one, so `take` removes the entries while the address is still this object's, the two references are released, and `after` frees what must outlive the object (the heap's memory block, a descriptor heap's slots and shadow), after the last `Release` as before. When two last-but-one releases run at once, both see `AddRef` above 2; the one whose `Release` ends at 0 then takes the entries after the object is gone, as `main` does, so nothing is left behind (the address-reuse window stays open only in that case, as in #2691 and `res_release`). The four hooks use it. - `console_heap.rs`: `unregister` is split into `take` and `free` for that; `unregister` itself is unchanged for its other callers. - Tests in `real.rs` (`release_order_tests`), on a fake object whose last `Release` records an entry at its address as a new object there would: `mem_heap_release_keeps_a_new_heap_at_the_freed_address` fails on `main` (`dropped the heap made at the freed address`) and pass with this change; `take_runs_before_the_last_release_and_after_once_it_is_gone` checks the helper's order; `two_last_releases_at_once_take_the_entries_once` makes two threads' `AddRef`s meet at a barrier and checks the entries are taken exactly once (it fails, `left: (0, 0)`, without the fallback). **Tested** - RTX 4080 SUPER (driver 621.40), Ryzen 5 7600X, Windows 11 26H2 build 26300.10075, rustc 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100), debug build, base `b49be18`, head `9e305ed` - `cargo test --workspace -- --test-threads=4`: 1438 passed, 0 failed, 47 ignored; the three `release_order_tests` pass - the heap test against `main`'s `mem_heap_release` (this branch's test and helper on `main`'s `real.rs`): it fails - SKIPPED on this adapter: the wave64 tests (NVIDIA, wave32 only), the D3D12 debug layer tests (`d3d12SDKLayers.dll` not installed), `pso_measurement_compiles_an_exact_synthetic_record` (Developer Mode off), `no heap windows` **Regression run** - None: I own no Series X|S title to run `scripts/smoke.ps1` on. This changes the runtime, so it needs a smoke run from someone who has one. **Not tested** - Any game: no `xcl-smoke` run, and no title that I know of shows the race (it needs a release and a create on two threads at once with the allocator handing back the address). - `heap_release`, `q_release` and `alloc_release` have no test of their own; they use the same helper, which is tested. - AMD / Intel GPUs, a release build. **AI use** - Claude Code, Claude Opus 5.5: found the order while checking the release hooks after a command list fix (the same one as #2691), wrote the change and the tests, ran the tests and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
luckyteagirl commented 2026-11-26 07:26:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T07:26:36Z.

Review: COMMENTED


real.rs:7021–7025: this loses cleanup when two threads release the last two references concurrently. Starting with refcount 2, A's AddRef returns 3 and B's returns 4, so neither calls take. If A then makes its two Release calls (4→3→2) and B makes its two (2→1→0), n is 0 for B but taken is None for both. No queue/allocator/heap bookkeeping is removed; mem_heap_release can also leave its UMA block allocated. Main used the zero-return path, so this is a new leak/stale-address case in the attempted ordering fix.

Could you cover that interleaving with a barrier after both temporary AddRef calls and arrange one-time cleanup even when the final caller did not see AddRef == 2? A simple zero-return fallback would need to account for the address-reuse race this PR is fixing. This is source-derived at exact head 052a3235a0cd4ce38bacf177d45f7ec4a64e6343; I have not run a native concurrency test. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6070025180 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#pullrequestreview-6070025180). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T07:26:36Z. **Review:** COMMENTED --- `real.rs:7021–7025`: this loses cleanup when two threads release the last two references concurrently. Starting with refcount 2, A's `AddRef` returns 3 and B's returns 4, so neither calls `take`. If A then makes its two `Release` calls (4→3→2) and B makes its two (2→1→0), `n` is 0 for B but `taken` is `None` for both. No queue/allocator/heap bookkeeping is removed; `mem_heap_release` can also leave its UMA block allocated. Main used the zero-return path, so this is a new leak/stale-address case in the attempted ordering fix. Could you cover that interleaving with a barrier after both temporary `AddRef` calls and arrange one-time cleanup even when the final caller did not see `AddRef == 2`? A simple zero-return fallback would need to account for the address-reuse race this PR is fixing. This is source-derived at exact head `052a3235a0cd4ce38bacf177d45f7ec4a64e6343`; I have not run a native concurrency test. AI-assisted review with Codex.
sage-sage commented 2026-11-26 09:07:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by sage-sage on 2026-11-26T08:55:54Z.


@luckyteagirl thank you, that was a real gap: with both temporary AddRefs above 2, nobody cleaned up. Fixed in 9e305ed (squashed): the release whose Release ends at 0 now takes the entries after the object is gone when no call saw AddRef == 2, as main did, so nothing is left behind and the heap's block is freed. The address-reuse window stays open only in that interleaving, as in #2691 and res_release.

New test two_last_releases_at_once_take_the_entries_once, as you suggested: two threads' AddRefs meet at a barrier, so both see more than 2; it checks the entries are taken and after runs exactly once. Without the fallback it fails (left: (0, 0)), with it it passes. cargo test --workspace -- --test-threads=4 on 9e305ed: 1438 passed, 0 failed, 47 ignored (RTX 4080 SUPER, debug).

Claude Code (Claude Opus 5.5) made the change, ran the tests and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7187197834 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7187197834). Originally posted by [sage-sage](https://github.com/sage-sage) on 2026-11-26T08:55:54Z. --- @luckyteagirl thank you, that was a real gap: with both temporary `AddRef`s above 2, nobody cleaned up. Fixed in `9e305ed` (squashed): the release whose `Release` ends at 0 now takes the entries after the object is gone when no call saw `AddRef == 2`, as `main` did, so nothing is left behind and the heap's block is freed. The address-reuse window stays open only in that interleaving, as in #2691 and `res_release`. New test `two_last_releases_at_once_take_the_entries_once`, as you suggested: two threads' `AddRef`s meet at a barrier, so both see more than 2; it checks the entries are taken and `after` runs exactly once. Without the fallback it fails (`left: (0, 0)`), with it it passes. `cargo test --workspace -- --test-threads=4` on `9e305ed`: 1438 passed, 0 failed, 47 ignored (RTX 4080 SUPER, debug). Claude Code (Claude Opus 5.5) made the change, ran the tests and wrote this reply.
Decodere commented 2026-11-26 10:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T09:28:48Z.


Independent RTX 4060 (8 GB) / Windows 11 verification of PR #2701 at 9e305ed629d7c15655a2368f913231ab59737f7c (exact parent origin/main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Measurements and targeted test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0 XCL_ACTIVITY=1, default flags, no input)

Targeted RTX 4060 release unit tests (9e305ed6)

  • cargo test --release -p xcl --lib take_runs_before_the_last_release_and_after_once_it_is_gone -- --nocapture: 1 passed, 0 failed, 0 ignored (0.00 s, exit 0).
  • cargo test --release -p xcl --lib two_last_releases_at_once_take_the_entries_once -- --nocapture (3 consecutive passes): 1 passed, 0 failed, 0 ignored × 3 (0.00 s each, exit 0).
  • cargo test --release -p xcl --lib mem_heap_release_keeps_a_new_heap_at_the_freed_address -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, exit 0).
  • cargo test --release -p xcl --lib hle::d3d12x::console_heap:: -- --test-threads=4: 12 passed, 0 failed, 0 ignored (0.21 s, 0 skipped, exit 0).
  • cargo test --release -p xcl --lib hle::d3d12x::real:: -- --test-threads=4: 63 passed, 0 failed, 0 ignored (0.82 s, 0 skipped, exit 0).

Observations

  • All 3 new release-order regression tests in hle::d3d12x::real::release_order_tests (including 3/3 consecutive --release runs of the concurrent last-release race test two_last_releases_at_once_take_the_entries_once) plus all 75 targeted console_heap:: and real:: tests passed cleanly on this Windows 11 / RTX 4060 host with 0 skips.
  • Quiet 60 s retail smoke ran and exited cleanly (exit: 0x0, 1554 frames shown, 60 60 61 steady-state presents per 2 s, 0 device removals, 0 crashes, 13975 MB peak commit vs parent b49be183's 14018 MB / 1518 frames).

Paired 60 s RTX 4060 smoke (b49be183 vs 9e305ed6)

Parent origin/main (b49be183):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2701 head (9e305ed6):

xcl-smoke v1
commit: 9e305ed629d7c15655a2368f913231ab59737f7c
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1554 (PresentX 1554)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 13975 MB

Limits of coverage

  • Full workspace test suite was not re-run on 9e305ed6 (only targeted console_heap:: and real:: release tests plus paired quiet 60 s smoke).
  • The quiet 60 s retail smoke verifies no runtime regression on normal heap/queue/allocator lifetime paths; the exact COM address-reuse and concurrent last-release races are exercised by the synthetic release_order_tests unit tests.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release unit tests and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts and smoke blocks were taken directly from cargo test and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7188045920 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7188045920). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T09:28:48Z. --- **Independent RTX 4060 (8 GB) / Windows 11 verification of PR #2701 at `9e305ed629d7c15655a2368f913231ab59737f7c`** (exact parent `origin/main` `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`). Measurements and targeted test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, warm DXIL/pipeline caches, quiet machine (zero concurrent builds/tests during timed runs) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0 XCL_ACTIVITY=1`, default flags, no input) ### Targeted RTX 4060 release unit tests (`9e305ed6`) - `cargo test --release -p xcl --lib take_runs_before_the_last_release_and_after_once_it_is_gone -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.00 s`, exit `0`). - `cargo test --release -p xcl --lib two_last_releases_at_once_take_the_entries_once -- --nocapture` (3 consecutive passes): **1 passed, 0 failed, 0 ignored** × 3 (`0.00 s` each, exit `0`). - `cargo test --release -p xcl --lib mem_heap_release_keeps_a_new_heap_at_the_freed_address -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, exit `0`). - `cargo test --release -p xcl --lib hle::d3d12x::console_heap:: -- --test-threads=4`: **12 passed, 0 failed, 0 ignored** (`0.21 s`, `0` skipped, exit `0`). - `cargo test --release -p xcl --lib hle::d3d12x::real:: -- --test-threads=4`: **63 passed, 0 failed, 0 ignored** (`0.82 s`, `0` skipped, exit `0`). ### Observations - All 3 new release-order regression tests in `hle::d3d12x::real::release_order_tests` (including 3/3 consecutive `--release` runs of the concurrent last-release race test `two_last_releases_at_once_take_the_entries_once`) plus all 75 targeted `console_heap::` and `real::` tests passed cleanly on this Windows 11 / RTX 4060 host with `0` skips. - Quiet 60 s retail smoke ran and exited cleanly (`exit: 0x0`, `1554` frames shown, `60 60 61` steady-state presents per 2 s, `0` device removals, `0` crashes, `13975 MB` peak commit vs parent `b49be183`'s `14018 MB` / `1518` frames). ### Paired 60 s RTX 4060 smoke (`b49be183` vs `9e305ed6`) Parent `origin/main` (`b49be183`): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2701 head (`9e305ed6`): ``` xcl-smoke v1 commit: 9e305ed629d7c15655a2368f913231ab59737f7c gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1554 (PresentX 1554) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 13975 MB ``` ### Limits of coverage - Full workspace test suite was not re-run on `9e305ed6` (only targeted `console_heap::` and `real::` release tests plus paired quiet 60 s smoke). - The quiet 60 s retail smoke verifies no runtime regression on normal heap/queue/allocator lifetime paths; the exact COM address-reuse and concurrent last-release races are exercised by the synthetic `release_order_tests` unit tests. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release unit tests and paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts and smoke blocks were taken directly from `cargo test` and `scripts/smoke.ps1` outputs.
emirduran707 commented 2026-11-26 10:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-26T10:01:22Z.


Independent AMD RDNA4 (native wave64) verification of exact PR head 9e305ed629d7c15655a2368f913231ab59737f7c on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver 32.0.31044.16, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC 1.9.2602.17).

Tested

  • cargo build --workspace (debug): passed (0 errors).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1436 passed, 2 failed, 47 ignored (8 SKIPPED: 6 per-lane DXIL forms refused by host adapter/driver, 1 heap_window_out_of_memory_falls_back_to_the_switch_form no heap windows, 1 pso_measurement_compiles_an_exact_synthetic_record Windows Developer Mode off).
    • All 3 new tests passed:
      • hle::d3d12x::real::release_order_tests::mem_heap_release_keeps_a_new_heap_at_the_freed_address
      • hle::d3d12x::real::release_order_tests::take_runs_before_the_last_release_and_after_once_it_is_gone
      • hle::d3d12x::real::release_order_tests::two_last_releases_at_once_take_the_entries_once
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and fuzz_validate_and_gpu_3) are pre-existing on unmodified main on this RX 9060 XT / driver 32.0.31044.16.
  • cargo build --release -p xcl + 60 s retail-title smoke test (scripts/smoke.ps1, offline):
xcl-smoke v1
commit: 9e305ed629d7c15655a2368f913231ab59737f7c
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1598 (PresentX 1598)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18663 MB

(Compare against main b49be183 on this machine: 1603 frames, 18576 MB peak, 0 device removals, 0 crashes.)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine.

AI use

  • Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
<!-- greyfinch-sync:ivall/xcl:comment:7188801958 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7188801958). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-26T10:01:22Z. --- Independent AMD RDNA4 (native wave64) verification of exact PR head `9e305ed629d7c15655a2368f913231ab59737f7c` on Windows 11 Pro 26300 (AMD Radeon RX 9060 XT 16 GB, driver `32.0.31044.16`, Ryzen 5 5600, Rust 1.100.0 MSVC, DXC `1.9.2602.17`). **Tested** - `cargo build --workspace` (debug): passed (`0` errors). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: `1436 passed, 2 failed, 47 ignored` (`8 SKIPPED`: 6 per-lane DXIL forms refused by host adapter/driver, 1 `heap_window_out_of_memory_falls_back_to_the_switch_form` no heap windows, 1 `pso_measurement_compiles_an_exact_synthetic_record` Windows Developer Mode off). - All 3 new tests passed: - `hle::d3d12x::real::release_order_tests::mem_heap_release_keeps_a_new_heap_at_the_freed_address` - `hle::d3d12x::real::release_order_tests::take_runs_before_the_last_release_and_after_once_it_is_gone` - `hle::d3d12x::real::release_order_tests::two_last_releases_at_once_take_the_entries_once` - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `fuzz_validate_and_gpu_3`) are pre-existing on unmodified `main` on this RX 9060 XT / driver `32.0.31044.16`. - `cargo build --release -p xcl` + 60 s retail-title smoke test (`scripts/smoke.ps1`, offline): ``` xcl-smoke v1 commit: 9e305ed629d7c15655a2368f913231ab59737f7c gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1598 (PresentX 1598) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18663 MB ``` (Compare against `main` `b49be183` on this machine: `1603 frames, 18576 MB peak, 0 device removals, 0 crashes`.) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine. **AI use** - Verification run and report prepared with Antigravity (Gemini 4 Neon); all build, test, and smoke results are from live runs on this machine.
github-actions[bot] commented 2026-12-01 02:33:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:46Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298749665 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7298749665). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:33:46Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:44:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:44:48Z.


Triage (#1607) – head 9e305ed

Main commit c18d812 ("D3D12.X: detach heap state before final Release", co-authored by you) contains the heap part of this PR: release_taking_first, console_heap::take / free, and their use in heap_release and mem_heap_release, with tests.
Its message says it leaves the queue and allocator retirement as they were. Main has since rebuilt both paths: q_release goes through queue_submit::release, and alloc_release through alloc_pool::release_with_probe / retain_release_probe (0ac14d3). The q_release / alloc_release hunks here no longer apply. If the early take is still needed there, it needs a new PR written against those paths.
Recommendation: close (superseded by main commit c18d812).

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305724567 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7305724567). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:44:48Z. --- **Triage (#1607)** – head 9e305ed Main commit c18d812 ("D3D12.X: detach heap state before final Release", co-authored by you) contains the heap part of this PR: `release_taking_first`, `console_heap::take` / `free`, and their use in `heap_release` and `mem_heap_release`, with tests. Its message says it leaves the queue and allocator retirement as they were. Main has since rebuilt both paths: `q_release` goes through `queue_submit::release`, and `alloc_release` through `alloc_pool::release_with_probe` / `retain_release_probe` (0ac14d3). The `q_release` / `alloc_release` hunks here no longer apply. If the early take is still needed there, it needs a new PR written against those paths. Recommendation: close (superseded by main commit c18d812). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:58:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:58:26Z.


Closing as superseded: this change is already on main (c18d8122). main c18d8122 (co-authored by the PR author) has release_taking_first, console_heap::take/free for heap and UMA heap releases; queue/allocator parts were handled differently (queue registry retire 9dabfe85, alloc_pool::release_with_probe), not by this design

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311917020 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2701#issuecomment-7311917020). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:58:26Z. --- Closing as superseded: this change is already on `main` (c18d8122). main c18d8122 (co-authored by the PR author) has release_taking_first, console_heap::take/free for heap and UMA heap releases; queue/allocator parts were handled differently (queue registry retire 9dabfe85, alloc_pool::release_with_probe), not by this design Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

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
xcl-dev/xcl!2691
No description provided.