D3D12.X: a descriptor copy looks its console slots up under one lock #461

Open
TG0000 wants to merge 1 commit from upstream-pr/466 into main
TG0000 commented 2026-11-24 00:40:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by TG0000 on 2026-11-24T00:40:47Z.


A device descriptor copy over console heaps (CopyDescriptorsSimple #24 / CopyDescriptors #23) copied the slot words one pair at a time, and looked each side of each pair up with console_heap::slot(). Every lookup locked the heap list and scanned all of it, locked the shared heap to read its geometry (view slots), and copy_words then locked the XCL_TRACE_FRAME resource map once per slot, even with tracing off. That came to about 2n heap-list scans and 3n–4n mutex round-trips for every n-descriptor copy, on a path the title runs every frame.

console_heap::copy_words_run now does the whole run under one lock of the heaps:

  • it tries the heap of the previous pair first (heap_of(.., hint)). Heaps never overlap, so a hit is the same heap the scan would find, and a miss falls back to the scan.
  • it reads the shared heap's (cpu, gpu, inc) once per run, and only when a view slot needs it. These values are fixed once the heap is made, and GLOBAL is never set back to None.
  • copy_words looks up the resource map only when trace_frame() is on, which is when note_resource would use it.

The behaviour is the same as before: the same pairs, the destination looked up before the source for each pair (so shared-heap pages are reserved in the same order), pairs with a side outside the console heaps skipped, and the same words written. slot() now uses the same heap_of / slot_in code.

What is in it

  • crates/xcl/src/hle/d3d12x/console_heap.rs: slot() is split into heap_of + slot_in. Adds copy_words_run, and copy_words skips the resource-map lookup when tracing is off. Adds unit tests and an #[ignore]d release microbenchmark.
  • crates/xcl/src/hle/d3d12x/real.rs: in copy_console_slots, the per-slot loop is replaced by one copy_words_run call (3 lines).

No open PR touches these hunks: #187 edits console_heap.rs only at lines ~27 and ~157–200 (shared_heap), and no open PR edits real.rs near copy_console_slots.

Tested

  • AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, rustc 1.100.0 stable-x86_64-pc-windows-msvc
  • New unit tests:
    • a_run_copies_what_each_slot_did: for views and for samplers, it compares copy_words_run with the old per-slot loop on identical heaps. The run starts 2 slots before the end of one heap, goes into a heap right after it, then into memory that belongs to no heap; it also copies whole heaps and copies from outside the console heaps. Image T# are renumbered, V# keep their address, S# word 3 is renumbered. Run 10 times under the parallel test runner: passed every time.
    • a_heap_hint_is_checked: a wrong hint, an out-of-range hint, a correct hint, and an address just past a heap.
  • cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib console_heap: 5 passed, 0 failed, 1 ignored. This includes the existing slots_copy_and_release and large_heaps_get_shared_pages_as_used, which exercise slot() with the shared heap on the real device.
  • cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib: 636 passed, 2 failed, 22 ignored. The 2 failures are vram::tests::d32s8_targets_take_their_own_size_of_video_memory and title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels ("3D 64x64x64 4 mips: subresource 2 mismatch"). They fail the same way on origin/main (a6f5f7a) without this change, on this adapter, and are in files this PR does not touch.
  • cargo +stable-x86_64-pc-windows-msvc clippy -p xcl --all-targets: no new warnings. The only console_heap.rs warnings are the 4 that were already there (# Safety docs on existing unsafe fns). The release build has the same single rustc warning as main.
  • Release microbenchmark, cargo test --release -p xcl --lib copy_run_speed -- --ignored --nocapture. It copies 64 view slots with 48 heaps registered, with the busiest pair registered last:
    copy of 64 view slots, 48 heaps: a lookup per slot 5826 ns, one run 1546 ns (3.8x)
    copy of 64 view slots, 48 heaps: a lookup per slot 6067 ns, one run 1823 ns (3.3x)
    

Regression run

scripts/smoke.ps1 -Seconds 45, one run each, under a 1 s free-RAM watchdog (it never fired):

xcl-smoke v1
commit: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 692 (PresentX 692)
presents per 2 s (last 3): 55 55 56
device removals: 0
crashes: 0
peak commit: 15153 MB
xcl-smoke v1
commit: ed2b685a9b9fea12f31c104c74a656d6ac9e942b
gpu: AMD Radeon RX 6800
title: retail-title-1.0.2.1
seconds: 45
exit: 0x0
frames shown: 828 (PresentX 828)
presents per 2 s (last 3): 58 60 59
device removals: 0
crashes: 0
peak commit: 15154 MB

These are single runs, and frame counts vary from run to run. I don't claim this change caused the difference in frame counts. The point of these runs is that nothing regressed: no device removal, no crash, and the same peak commit.

Not tested

  • NVIDIA and Intel GPUs, and RDNA4 (the maintainer's batch run).
  • How many descriptors per frame the title copies through #23/#24. I have no count from the retail run, so the per-frame saving in that title is not measured. The microbenchmark measures only the copy path.
  • Shared-heap page reservation through copy_words_run on a real device. It uses the same page_of code as slot(), which the existing shared-heap test covers, but no test runs a copy through it with GLOBAL present.

AI use

  • Claude Code with Claude Opus 5.5: found the hot path, wrote the change, the tests and the benchmark, and ran the builds, tests and smoke runs. I reviewed the diff.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5463848374 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466). Originally posted by [TG0000](https://github.com/TG0000) on 2026-11-24T00:40:47Z. --- A device descriptor copy over console heaps (`CopyDescriptorsSimple` #24 / `CopyDescriptors` #23) copied the slot words one pair at a time, and looked each side of each pair up with `console_heap::slot()`. Every lookup locked the heap list and scanned all of it, locked the shared heap to read its geometry (view slots), and `copy_words` then locked the `XCL_TRACE_FRAME` resource map once per slot, even with tracing off. That came to about 2n heap-list scans and 3n–4n mutex round-trips for every n-descriptor copy, on a path the title runs every frame. `console_heap::copy_words_run` now does the whole run under one lock of the heaps: - it tries the heap of the previous pair first (`heap_of(.., hint)`). Heaps never overlap, so a hit is the same heap the scan would find, and a miss falls back to the scan. - it reads the shared heap's `(cpu, gpu, inc)` once per run, and only when a view slot needs it. These values are fixed once the heap is made, and `GLOBAL` is never set back to `None`. - `copy_words` looks up the resource map only when `trace_frame()` is on, which is when `note_resource` would use it. The behaviour is the same as before: the same pairs, the destination looked up before the source for each pair (so shared-heap pages are reserved in the same order), pairs with a side outside the console heaps skipped, and the same words written. `slot()` now uses the same `heap_of` / `slot_in` code. **What is in it** - `crates/xcl/src/hle/d3d12x/console_heap.rs`: `slot()` is split into `heap_of` + `slot_in`. Adds `copy_words_run`, and `copy_words` skips the resource-map lookup when tracing is off. Adds unit tests and an `#[ignore]`d release microbenchmark. - `crates/xcl/src/hle/d3d12x/real.rs`: in `copy_console_slots`, the per-slot loop is replaced by one `copy_words_run` call (3 lines). No open PR touches these hunks: #187 edits `console_heap.rs` only at lines ~27 and ~157–200 (`shared_heap`), and no open PR edits `real.rs` near `copy_console_slots`. **Tested** - AMD Radeon RX 6800 (driver 32.0.21045.29003), Ryzen 9 5900X, Windows 11 build 26300, rustc 1.100.0 `stable-x86_64-pc-windows-msvc` - New unit tests: - `a_run_copies_what_each_slot_did`: for views and for samplers, it compares `copy_words_run` with the old per-slot loop on identical heaps. The run starts 2 slots before the end of one heap, goes into a heap right after it, then into memory that belongs to no heap; it also copies whole heaps and copies from outside the console heaps. Image T# are renumbered, V# keep their address, S# word 3 is renumbered. Run 10 times under the parallel test runner: passed every time. - `a_heap_hint_is_checked`: a wrong hint, an out-of-range hint, a correct hint, and an address just past a heap. - `cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib console_heap`: 5 passed, 0 failed, 1 ignored. This includes the existing `slots_copy_and_release` and `large_heaps_get_shared_pages_as_used`, which exercise `slot()` with the shared heap on the real device. - `cargo +stable-x86_64-pc-windows-msvc test -p xcl --lib`: 636 passed, 2 failed, 22 ignored. The 2 failures are `vram::tests::d32s8_targets_take_their_own_size_of_video_memory` and `title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` ("3D 64x64x64 4 mips: subresource 2 mismatch"). They fail the same way on `origin/main` (`a6f5f7a`) without this change, on this adapter, and are in files this PR does not touch. - `cargo +stable-x86_64-pc-windows-msvc clippy -p xcl --all-targets`: no new warnings. The only `console_heap.rs` warnings are the 4 that were already there (`# Safety` docs on existing `unsafe fn`s). The release build has the same single rustc warning as `main`. - Release microbenchmark, `cargo test --release -p xcl --lib copy_run_speed -- --ignored --nocapture`. It copies 64 view slots with 48 heaps registered, with the busiest pair registered last: ``` copy of 64 view slots, 48 heaps: a lookup per slot 5826 ns, one run 1546 ns (3.8x) copy of 64 view slots, 48 heaps: a lookup per slot 6067 ns, one run 1823 ns (3.3x) ``` **Regression run** `scripts/smoke.ps1 -Seconds 45`, one run each, under a 1 s free-RAM watchdog (it never fired): ``` xcl-smoke v1 commit: 2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21 gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 692 (PresentX 692) presents per 2 s (last 3): 55 55 56 device removals: 0 crashes: 0 peak commit: 15153 MB ``` ``` xcl-smoke v1 commit: ed2b685a9b9fea12f31c104c74a656d6ac9e942b gpu: AMD Radeon RX 6800 title: retail-title-1.0.2.1 seconds: 45 exit: 0x0 frames shown: 828 (PresentX 828) presents per 2 s (last 3): 58 60 59 device removals: 0 crashes: 0 peak commit: 15154 MB ``` These are single runs, and frame counts vary from run to run. I don't claim this change caused the difference in frame counts. The point of these runs is that nothing regressed: no device removal, no crash, and the same peak commit. **Not tested** - NVIDIA and Intel GPUs, and RDNA4 (the maintainer's batch run). - How many descriptors per frame the title copies through #23/#24. I have no count from the retail run, so the per-frame saving in that title is not measured. The microbenchmark measures only the copy path. - Shared-heap page reservation through `copy_words_run` on a real device. It uses the same `page_of` code as `slot()`, which the existing shared-heap test covers, but no test runs a copy through it with `GLOBAL` present. **AI use** - Claude Code with Claude Opus 5.5: found the hot path, wrote the change, the tests and the benchmark, and ran the builds, tests and smoke runs. I reviewed the diff. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
thehollowedone commented 2026-11-24 07:05:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T00:45:05Z.


Tested

Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (driver 621.35), Rust 1.99.1 MSVC, release build. Tested commit ed2b685a

  • cargo test --release --locked -p xcl --lib console_heap -- --test-threads=1 --nocapture — 5 passed, 0 failed, 1 ignored (the benchmark), and 0 reported skips.
  • cargo test --release --locked -p xcl --lib copy_run_speed -- --ignored --nocapture — passed in three separate processes. Across six samples from this revision’s synthetic benchmark (64 descriptors, 48 heaps), per-slot lookup took 3,743–3,921 ns per copy and batched lookup took 1,031–1,052 ns per copy, a 3.6–3.7× speedup in this benchmark.

Not tested

Full workspace suite, AMD, shared-heap page reservation through the batched copy on a real device, retail titles, or per-frame performance.

AI use

Codex with GPT-6.2 Sol ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7118393658 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/466#issuecomment-7118393658). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-24T00:45:05Z. --- **Tested** Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (driver 621.35), Rust 1.99.1 MSVC, release build. [Tested commit ed2b685a](https://github.com/ivall/xcl/pull/466/commits/ed2b685a9b9fea12f31c104c74a656d6ac9e942b) - `cargo test --release --locked -p xcl --lib console_heap -- --test-threads=1 --nocapture` — 5 passed, 0 failed, 1 ignored (the benchmark), and 0 reported skips. - `cargo test --release --locked -p xcl --lib copy_run_speed -- --ignored --nocapture` — passed in three separate processes. Across six samples from this revision’s synthetic benchmark (64 descriptors, 48 heaps), per-slot lookup took 3,743–3,921 ns per copy and batched lookup took 1,031–1,052 ns per copy, a **3.6–3.7× speedup** in this benchmark. **Not tested** Full workspace suite, AMD, shared-heap page reservation through the batched copy on a real device, retail titles, or per-frame performance. **AI use** Codex with GPT-6.2 Sol ran the tests and drafted this report.
H0UNDZER0 commented 2026-11-24 07:05:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by H0UNDZER0 on 2026-11-24T02:14:39Z.


Tested on an RTX 5080: pass. This adds the whole suite, which the RTX 3080 Ti run above lists as not tested: 678 passed, 0 failed.

  • Commit ed2b685a9b9fea12f31c104c74a656d6ac9e942b, this PR's head as is (on its base 2997c9a), release build.
  • NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124), 32-lane waves; Ryzen 7 9700X; Windows 11 Pro 24H2 (26100.9711); Rust 1.100.0 MSVC; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No XCL_* variables set.
  • cargo build --release --workspace --locked: OK, the same single fetch_update warning as main.
  • cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4, run twice (the second with --show-output): 678 passed, 0 failed, 42 ignored both times. main 2997c9a gives 676 / 0 / 41 on this PC: the difference is this PR's 2 new tests and its ignored benchmark.
  • SKIPPED: the usual 2, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64).
  • console_heap: a_run_copies_what_each_slot_did and a_heap_hint_is_checked pass, and so do slots_copy_and_release and large_heaps_get_shared_pages_as_used (the shared heap on this device).

Not tested

  • A copy through copy_words_run with the shared heap present on a real device: no test makes one, as the description says.
  • This PR merged onto a newer main. At the time of the run that was 508a0c7; git merge-tree showed no conflict.
  • The benchmark, debug build, retail titles, scripts/smoke.ps1.

AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2)

<!-- greyfinch-sync:ivall/xcl:comment:7119913069 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/466#issuecomment-7119913069). Originally posted by [H0UNDZER0](https://github.com/H0UNDZER0) on 2026-11-24T02:14:39Z. --- **Tested** on an RTX 5080: **pass**. This adds the whole suite, which the RTX 3080 Ti run above lists as not tested: 678 passed, 0 failed. - Commit `ed2b685a9b9fea12f31c104c74a656d6ac9e942b`, this PR's head as is (on its base `2997c9a`), release build. - NVIDIA GeForce RTX 5080 16 GB, driver 621.24 (32.0.16.2124), 32-lane waves; Ryzen 7 9700X; Windows 11 Pro 24H2 (26100.9711); Rust 1.100.0 MSVC; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No `XCL_*` variables set. - `cargo build --release --workspace --locked`: OK, the same single `fetch_update` warning as `main`. - `cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4`, run twice (the second with `--show-output`): **678 passed, 0 failed, 42 ignored** both times. `main` `2997c9a` gives 676 / 0 / 41 on this PC: the difference is this PR's 2 new tests and its ignored benchmark. - `SKIPPED`: the usual 2, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). - `console_heap`: `a_run_copies_what_each_slot_did` and `a_heap_hint_is_checked` pass, and so do `slots_copy_and_release` and `large_heaps_get_shared_pages_as_used` (the shared heap on this device). **Not tested** - A copy through `copy_words_run` with the shared heap present on a real device: no test makes one, as the description says. - This PR merged onto a newer `main`. At the time of the run that was `508a0c7`; `git merge-tree` showed no conflict. - The benchmark, debug build, retail titles, `scripts/smoke.ps1`. **AI use:** Claude Code (Claude Opus 5.5, Claude Fable 5.2)
Alpha325 commented 2026-11-25 03:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Alpha325 on 2026-11-25T02:41:18Z.


I extended the release microbenchmark at ed2b685a9b9fea12f31c104c74a656d6ac9e942b to cover 1, 4, 16, and 64 view descriptors. Both paths ran in the same PR build, comparing the per-slot loop with copy_words_run. I registered 48 synthetic heaps and tested source/destination pairs at the front and back of the list.

Windows 11 build 26200.9974, Ryzen 5 7600X3D, Rust 1.100.0 MSVC release. Five fresh processes, two paired measurements per process with timing order reversed, and 20,000 copies per measurement.

Heap position Descriptors Per-slot loop, ns/copy Batched, ns/copy Median paired speedup
Front 1 33.7 22.4 1.51×
Front 4 129.8 75.1 1.73×
Front 16 523.1 286.2 1.83×
Front 64 2076.4 1133.1 1.83×
Back 1 62.4 59.0 1.07×
Back 4 251.8 111.0 2.27×
Back 16 1002.0 321.6 3.12×
Back 64 4011.7 1167.8 3.43×

The smallest gain was a single descriptor at the back of the list (1.05–1.09× across the ten pairs). The 64-descriptor back-of-list case measured 3.38–3.46×.

cargo test --release --offline --locked -p xcl --lib console_heap -- --test-threads=1 --nocapture returned 5 passed, 0 failed, 1 ignored, and no skip markers. I ran the ignored copy_run_speed benchmark separately with --ignored --test-threads=1 --nocapture.

Scope — CPU descriptor lookup and copy time with synthetic heaps. Frame rate and GPU execution time were outside this test.

AI use — OpenAI Codex (GPT-6) extended the benchmark, ran it, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7151047480 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466#issuecomment-7151047480). Originally posted by [Alpha325](https://github.com/Alpha325) on 2026-11-25T02:41:18Z. --- I extended the release microbenchmark at `ed2b685a9b9fea12f31c104c74a656d6ac9e942b` to cover 1, 4, 16, and 64 view descriptors. Both paths ran in the same PR build, comparing the per-slot loop with `copy_words_run`. I registered 48 synthetic heaps and tested source/destination pairs at the front and back of the list. Windows 11 build 26200.9974, Ryzen 5 7600X3D, Rust 1.100.0 MSVC release. Five fresh processes, two paired measurements per process with timing order reversed, and 20,000 copies per measurement. | Heap position | Descriptors | Per-slot loop, ns/copy | Batched, ns/copy | Median paired speedup | |---|---:|---:|---:|---:| | Front | 1 | 33.7 | 22.4 | 1.51× | | Front | 4 | 129.8 | 75.1 | 1.73× | | Front | 16 | 523.1 | 286.2 | 1.83× | | Front | 64 | 2076.4 | 1133.1 | 1.83× | | Back | 1 | 62.4 | 59.0 | 1.07× | | Back | 4 | 251.8 | 111.0 | 2.27× | | Back | 16 | 1002.0 | 321.6 | 3.12× | | Back | 64 | 4011.7 | 1167.8 | 3.43× | The smallest gain was a single descriptor at the back of the list (1.05–1.09× across the ten pairs). The 64-descriptor back-of-list case measured 3.38–3.46×. `cargo test --release --offline --locked -p xcl --lib console_heap -- --test-threads=1 --nocapture` returned 5 passed, 0 failed, 1 ignored, and no skip markers. I ran the ignored `copy_run_speed` benchmark separately with `--ignored --test-threads=1 --nocapture`. Scope — CPU descriptor lookup and copy time with synthetic heaps. Frame rate and GPU execution time were outside this test. AI use — OpenAI Codex (GPT-6) extended the benchmark, ran it, and drafted this report.
DavidM1911 commented 2026-11-25 15:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:15:34Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7165001126 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466#issuecomment-7165001126). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T14:15:34Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
DavidM1911 commented 2026-11-26 03:06:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T02:45:57Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7181098848 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466#issuecomment-7181098848). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T02:45:57Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
github-actions[bot] commented 2026-11-30 08:41:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:21Z.


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:7273219972 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466#issuecomment-7273219972). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:41:21Z. --- 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 03:10:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:10:30Z.


Triage (#1607) – head 7310f77

No open or merged PR batches the console-slot lookups of a descriptor copy (#2631 is about dropping shared-heap locks around CopyDescriptorsSimple, a different change).
copy_words_run holds HEAPS while calling copy_words, which takes no HEAPS lock, and keeps the destination-then-source order of the old slot calls, so no deadlock or reordering found. Rebase note: main's real.rs::copy_console_slots now collects names_of for publish_range, takes vram::lock_tracked_srv_write and uses copy_words_captured when SRV tracking is on; the run will need to cover that path too. The PR conflicts with main and the PR description check fails.
Recommendation: keep open.

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:7299407760 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/466#issuecomment-7299407760). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:10:30Z. --- **Triage (#1607)** – head 7310f77 No open or merged PR batches the console-slot lookups of a descriptor copy (#2631 is about dropping shared-heap locks around CopyDescriptorsSimple, a different change). `copy_words_run` holds `HEAPS` while calling `copy_words`, which takes no `HEAPS` lock, and keeps the destination-then-source order of the old `slot` calls, so no deadlock or reordering found. Rebase note: main's `real.rs::copy_console_slots` now collects `names_of` for `publish_range`, takes `vram::lock_tracked_srv_write` and uses `copy_words_captured` when SRV tracking is on; the run will need to cover that path too. The PR conflicts with main and the `PR description` check fails. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/466:upstream-pr/466'
git switch 'upstream-pr/466'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/466'
git switch 'upstream-pr/466'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/466'
git switch 'upstream-pr/466'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/466'
git switch 'main'
git merge --squash 'upstream-pr/466'
git switch 'main'
git merge --ff-only 'upstream-pr/466'
git switch 'main'
git merge 'upstream-pr/466'
git push origin 'main'
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!461
No description provided.