fix(host): resolve a reused ThreadType to its newest thread #2457

Merged
HumanBean merged 3 commits from DuckNintendo/Longshot:pr/02-threadtype-reuse into main 2026-12-05 19:02:47 +00:00
Contributor

Summary

A guest ThreadType address can outlive the HosThread record that first used it. hos_thread_of returned
the first registry match, but threads[] is not in creation order: hos_thread_destroy fills a hole with the
last entry. With two records for one address, the ordinary append order returns the older record, and a
destroy swap makes a last match return it. The new ThreadType then gets the old thread's start state, core
or mask; StartThread on an already-started old record silently starts nothing.

Two records coexist only when CreateThread runs on an address that is still registered; the normal
create → destroy → free → reuse cycle removes the record first. The fix returns the matching record with the
highest creation id: the record created last on that address, whatever its position. The older record stays
tracked for the handle-based calls and the thread listings.

The bug is not visible by eye; read first hos_thread_of in host/hos_thread.c and the new check. Against
main, tests/test_thread_lookup.py fails at the append-order case (creation order -> id 0x51 (want 0x52));
on this branch it prints ok.

Testing

Tested: Linux, integrated Radeon GPU, RADV: Hyrule Field at 2560x1440, quality 6, threaded rendering off;
the fixed runtime played two 60 s runs and a 90 s probe (main played the other two 60 s runs). python -I -B tests/test_thread_lookup.py fails on
main at the append-order case and passes here; its first-match, last-match and oldest-id mutations each fail
on the case that catches them. The fixture now takes the runner's --cc, honors CC for a direct run, and
builds through tests/compiler_command.py: direct with the default compiler, with CC=clang, with
--cc 'cc -m64', and through python -I -B tests/run_all.py --jobs 1 test_thread_lookup all pass, and
tests/test_run_all_declarations.py passes. python -I -B tests/run_all.py: 848 passed, 22 failed, 110 skipped; the same
22 checks fail on main in this environment (missing optional local toolchain pieces), and the new check is
the extra pass. The checks that read the changed files: 26 passed, 1 failed (the same tests/test_dev_packs.py
failure as main), 2 skipped.

Still to test:

  • Native Windows: build and play Hyrule Field for a minute, expecting the same result and no crash (by hand).

Measurements

Verdict: no measurable frame-time change; this is a correctness fix, not a performance claim. The scan
visits every entry instead of breaking at the first match, but thread_arg answers the calling thread's own
ThreadType before the scan: a 90 s probe counted 4,352 registry scans with 85 records.

Setup: Linux, integrated Radeon GPU, RADV; Hyrule Field at 2560x1440, quality 6, threaded rendering off; 60 s
each, two interleaved runs, median.

Before: main @ 8aa5ab876d After: this PR @ bff7861e Δ
fps (run 1 / run 2) 10.34 / 10.17 10.51 / 9.78 within noise
frame median (run 1 / run 2) 96.9 / 95.3 ms 93.5 / 99.2 ms within noise
1% low (run 1 / run 2) 6.89 / 6.44 6.90 / 6.65 within noise

Risks

If the guest reuses an address before calling DestroyThread on the old object, that destroy remains
ambiguous: the guest passed one address for an object it has already reissued. No ordering rule recovers the
intent; the lookup answers the address's newest record, not a liveness test. No switch; a revert is enough.
Nothing changes for players after updating: saves, longshot_options.ini and the caches are untouched.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

Generated by opencode with deepseek-v4.1-flash-1017

## Summary A guest `ThreadType` address can outlive the `HosThread` record that first used it. `hos_thread_of` returned the first registry match, but `threads[]` is not in creation order: `hos_thread_destroy` fills a hole with the last entry. With two records for one address, the ordinary append order returns the older record, and a destroy swap makes a last match return it. The new `ThreadType` then gets the old thread's start state, core or mask; `StartThread` on an already-started old record silently starts nothing. Two records coexist only when `CreateThread` runs on an address that is still registered; the normal create → destroy → free → reuse cycle removes the record first. The fix returns the matching record with the highest creation id: the record created last on that address, whatever its position. The older record stays tracked for the handle-based calls and the thread listings. The bug is not visible by eye; read first `hos_thread_of` in `host/hos_thread.c` and the new check. Against `main`, `tests/test_thread_lookup.py` fails at the append-order case (`creation order -> id 0x51 (want 0x52)`); on this branch it prints `ok`. ## Testing **Tested:** Linux, integrated Radeon GPU, RADV: Hyrule Field at 2560x1440, quality 6, threaded rendering off; the fixed runtime played two 60 s runs and a 90 s probe (main played the other two 60 s runs). `python -I -B tests/test_thread_lookup.py` fails on `main` at the append-order case and passes here; its first-match, last-match and oldest-id mutations each fail on the case that catches them. The fixture now takes the runner's `--cc`, honors `CC` for a direct run, and builds through `tests/compiler_command.py`: direct with the default compiler, with `CC=clang`, with `--cc 'cc -m64'`, and through `python -I -B tests/run_all.py --jobs 1 test_thread_lookup` all pass, and `tests/test_run_all_declarations.py` passes. `python -I -B tests/run_all.py`: 848 passed, 22 failed, 110 skipped; the same 22 checks fail on `main` in this environment (missing optional local toolchain pieces), and the new check is the extra pass. The checks that read the changed files: 26 passed, 1 failed (the same `tests/test_dev_packs.py` failure as `main`), 2 skipped. **Still to test:** - Native Windows: build and play Hyrule Field for a minute, expecting the same result and no crash (by hand). ## Measurements **Verdict:** no measurable frame-time change; this is a correctness fix, not a performance claim. The scan visits every entry instead of breaking at the first match, but `thread_arg` answers the calling thread's own `ThreadType` before the scan: a 90 s probe counted 4,352 registry scans with 85 records. Setup: Linux, integrated Radeon GPU, RADV; Hyrule Field at 2560x1440, quality 6, threaded rendering off; 60 s each, two interleaved runs, median. | | Before: main @ 8aa5ab876d | After: this PR @ bff7861e | Δ | |---|---|---|---| | fps (run 1 / run 2) | 10.34 / 10.17 | 10.51 / 9.78 | within noise | | frame median (run 1 / run 2) | 96.9 / 95.3 ms | 93.5 / 99.2 ms | within noise | | 1% low (run 1 / run 2) | 6.89 / 6.44 | 6.90 / 6.65 | within noise | ## Risks If the guest reuses an address before calling `DestroyThread` on the old object, that destroy remains ambiguous: the guest passed one address for an object it has already reissued. No ordering rule recovers the intent; the lookup answers the address's newest record, not a liveness test. No switch; a revert is enough. Nothing changes for players after updating: saves, `longshot_options.ini` and the caches are untouched. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. Generated by opencode with deepseek-v4.1-flash-1017
A ThreadType address can outlive the record that first used it. The lookup
returned the first registry match, but the registry is not in creation order:
hos_thread_destroy fills a hole with the last entry, so a position is not an
age. Return the matching record with the highest creation id.

An older record stays tracked: it can still be a running thread that the
handle-based calls and the thread listings must find.

Assisted-by: opencode (deepseek-v4.1-flash)
test(host): cover a reused ThreadType lookup
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 9s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
bff7861e19
Compiles the production track, hos_thread_of, hos_thread_destroy and
thread_arg. Covers append order, the destroy swap, distinct, removed and
unknown addresses, the older record that stays tracked, and the calling
thread's own ThreadType. First match, last match and oldest id are run as
mutations and must each fail on the case that catches them.

Assisted-by: opencode (deepseek-v4.1-flash)
DuckNintendo changed title from fix(host): resolve a reused ThreadType to its newest thread to WIP: fix(host): resolve a reused ThreadType to its newest thread 2026-11-24 13:16:39 +00:00
DuckNintendo changed title from WIP: fix(host): resolve a reused ThreadType to its newest thread to fix(host): resolve a reused ThreadType to its newest thread 2026-11-24 13:24:25 +00:00
Owner
@review
BeanBot left a comment

Recommendation: Approve. The lookup fix addresses the tested ordering cases, but its regression test skips or fails on supported setups that have Clang without GCC and ignores CC. Native Windows validation is also still outstanding. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change selects the newest registered thread for a reused guest address, avoiding operations on an older record. It scans the full registry for cross-thread lookups; the reported Linux runs show no frame-time change outside their spread.

Should fix (1): not blocking, but worth doing before merging.

  • L1 tests/test_thread_lookup.py:23: The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every supported compiler setup. (more on the line) Do: Declare --cc with {cc}, honor CC for direct invocation, and parse compiler commands using the repository's compiler-command helper.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 host/hos_thread.c:540: The changed host thread lookup has not yet been exercised in a native Windows game run. (more on the line) Do: Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes.

@fix can do L1.

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports the game-free test fails on the base at the append-order case and passes on this head. Two 60-second Linux runs per side show overlapping frame-time and 1% low results; they do not establish a performance gain.

Other systems: The lookup serves thread start, join, destroy, naming, priority and affinity calls on both Windows and Linux; it is independent of GPU vendor. The fixture covers registry ordering but substitutes locks and thread creation, and native Windows play remains untested. Saves, audio, rendering APIs and generated files are not directly changed.

Switches: None added, changed or removed.

Reviewed: bff7861e19 against 8aa5ab876d: Read the changed test, diff, commits, repository rules, standards and pull request template; read the thread registry, creation, destruction and callers around the change, plus the test runner and source-cut helper. Skimmed unrelated portions of host/hos_thread.c. The requested docs/review-checklist.md and sibling Tooling checkout are absent; no generated files or recorded runs were changed.; nothing run (a code review).

Checked and fine:

  • Both commits carry AI-assistance trailers.
  • The fixture covers append order, destroy-swap order and first-match, last-match and oldest-id mutations.
  • No game-derived outputs, generated files, API versions or switch-table entries are changed.

Testing: Read-only review; no code, tests or project scripts were run. The author reports 848 passed, 22 base-matching failures and 110 skipped; listed CI checks are still running.

Overlaps and merge order: Unknown; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The lookup fix addresses the tested ordering cases, but its regression test skips or fails on supported setups that have Clang without GCC and ignores CC. Native Windows validation is also still outstanding. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change selects the newest registered thread for a reused guest address, avoiding operations on an older record. It scans the full registry for cross-thread lookups; the reported Linux runs show no frame-time change outside their spread. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_thread_lookup.py:23`: The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every supported compiler setup. (more on the line) **Do:** Declare --cc with {cc}, honor CC for direct invocation, and parse compiler commands using the repository's compiler-command helper. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/hos_thread.c:540`: The changed host thread lookup has not yet been exercised in a native Windows game run. (more on the line) **Do:** Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes. `@fix` can do L1. **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports the game-free test fails on the base at the append-order case and passes on this head. Two 60-second Linux runs per side show overlapping frame-time and 1% low results; they do not establish a performance gain. **Other systems:** The lookup serves thread start, join, destroy, naming, priority and affinity calls on both Windows and Linux; it is independent of GPU vendor. The fixture covers registry ordering but substitutes locks and thread creation, and native Windows play remains untested. Saves, audio, rendering APIs and generated files are not directly changed. **Switches:** None added, changed or removed. **Reviewed:** bff7861e1988 against 8aa5ab876d7c: Read the changed test, diff, commits, repository rules, standards and pull request template; read the thread registry, creation, destruction and callers around the change, plus the test runner and source-cut helper. Skimmed unrelated portions of host/hos_thread.c. The requested docs/review-checklist.md and sibling Tooling checkout are absent; no generated files or recorded runs were changed.; nothing run (a code review). **Checked and fine:** - Both commits carry AI-assistance trailers. - The fixture covers append order, destroy-swap order and first-match, last-match and oldest-id mutations. - No game-derived outputs, generated files, API versions or switch-table entries are changed. **Testing:** Read-only review; no code, tests or project scripts were run. The author reports 848 passed, 22 base-matching failures and 110 skipped; listed CI checks are still running. **Overlaps and merge order:** Unknown; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -537,2 +538,3 @@
fills its hole with the last entry. The record created last on the address answers, whatever its position. */
for (int i = 0; i < nthreads; i++)
if (threads[i]->guest_tt == guest_tt) { r = threads[i]; break; }
if (threads[i]->guest_tt == guest_tt && (!r || threads[i]->id > r->id)) r = threads[i];
Member

L2 (should fix): The changed host thread lookup has not yet been exercised in a native Windows game run.

When: Windows players use this same lookup and its native synchronization and thread lifecycle, while the reported game runs cover Linux only.

Do: Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes.

**L2** (should fix): The changed host thread lookup has not yet been exercised in a native Windows game run. *When:* Windows players use this same lookup and its native synchronization and thread lifecycle, while the reported game runs cover Linux only. **Do:** Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes.
@ -0,0 +20,4 @@
sys.path.insert(0, str(Path(__file__).resolve().parent)) # (tests/srccut.py: python -I leaves this folder off the path)
from srccut import between, block # noqa: E402
RUN_ALL_ARGS = ["--cc", "gcc"]
Member

L1 (should fix): The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every supported compiler setup.

When: On Windows with llvm-mingw Clang, or Linux with only Clang, run_all skips this regression test when gcc is absent, or fails it in strict mode; setting CC to Clang does not change that.

Do: Declare --cc with {cc}, honor CC for direct invocation, and parse compiler commands using the repository's compiler-command helper.

**L1** (should fix): The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every supported compiler setup. *When:* On Windows with llvm-mingw Clang, or Linux with only Clang, run_all skips this regression test when gcc is absent, or fails it in strict mode; setting CC to Clang does not change that. **Do:** Declare --cc with {cc}, honor CC for direct invocation, and parse compiler commands using the repository's compiler-command helper.
Owner
@fix
Member

I didn't fix this pull request: it doesn't allow edits from maintainers (the author can turn on Allow edits from maintainers).


Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I didn't fix this pull request: it doesn't allow edits from maintainers (the author can turn on *Allow edits from maintainers*). --- <sub>Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
test(host): compile the thread lookup fixture with the selected compiler
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
ce7d54727c
The fixture hard-coded gcc and ignored the runner's --cc, so a supported setup whose compiler is clang, or a CC configured with flags, could not run the check. Declare --cc as {cc}, honor CC for a direct run, and build through tests/compiler_command.py's parser in both cases.

Assisted-by: opencode (deepseek-v4.1-flash)
Author
Contributor

L1 is fixed in ce7d5472 (test(host): compile the thread lookup fixture with the selected compiler):

  • RUN_ALL_ARGS now declares --cc {cc}, so the runner passes the compiler it selected instead of the fixture always using gcc.
  • A direct run honors CC (falling back to gcc, then clang), and both the runner's value and CC are parsed with tests/compiler_command.py, so a compiler command with flags works too.

Verified:

python -I -B tests/test_thread_lookup.py                 -> ok (10 cases), 3 mutations failed as expected
CC=clang python -I -B tests/test_thread_lookup.py        -> ok, 3 mutations failed as expected
python -I -B tests/test_thread_lookup.py --cc 'cc -m64'  -> ok, 3 mutations failed as expected
python -I -B tests/run_all.py --jobs 1 test_thread_lookup -> 1 passed
python -I -B tests/test_run_all_declarations.py           -> OK

L2 (native Windows) is still in Still to test; no other review point is open. I also enabled "Allow maintainers to edit" on this PR.

Generated by opencode with deepseek-v4.1-flash-1017

L1 is fixed in ce7d5472 (`test(host): compile the thread lookup fixture with the selected compiler`): - `RUN_ALL_ARGS` now declares `--cc {cc}`, so the runner passes the compiler it selected instead of the fixture always using `gcc`. - A direct run honors `CC` (falling back to `gcc`, then `clang`), and both the runner's value and `CC` are parsed with `tests/compiler_command.py`, so a compiler command with flags works too. Verified: ```text python -I -B tests/test_thread_lookup.py -> ok (10 cases), 3 mutations failed as expected CC=clang python -I -B tests/test_thread_lookup.py -> ok, 3 mutations failed as expected python -I -B tests/test_thread_lookup.py --cc 'cc -m64' -> ok, 3 mutations failed as expected python -I -B tests/run_all.py --jobs 1 test_thread_lookup -> 1 passed python -I -B tests/test_run_all_declarations.py -> OK ``` L2 (native Windows) is still in Still to test; no other review point is open. I also enabled "Allow maintainers to edit" on this PR. Generated by opencode with deepseek-v4.1-flash-1017
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The lookup fix and its regression test address the reported reuse case, and the compiler selection issue is resolved. A native Windows game run and the remaining CI results are still needed before merge. Recommend approval; not approved on the forge.

The lookup chooses the newest thread record for a reused guest address regardless of registry order, preventing calls from using an older record. The scan now visits the whole registry; the reported Linux measurements show no clear frame-time change.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 host/hos_thread.c:540: The changed host thread lookup has not yet been exercised in a native Windows game run. When: Windows players use this same lookup and its native synchronization and thread lifecycle, while the reported game runs cover Linux only. Do: Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes.

Since the last review (on bff7861e19)
Resolved: L1 (The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every…)
Still open: L2 (The changed host thread lookup has not yet been exercised in a native Windows game run.)

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the reported game-free test fails on main and passes with the fix, including append and destroy-reordered cases. Two Linux runs on each side showed frame medians of 96.9/95.3 ms before and 93.5/99.2 ms after, within run-to-run variation.

Other systems: The lookup affects host thread operations on Linux and Windows, independently of GPU. Linux play and fixture runs are reported; native Windows play remains untested.

Switches: None.

Reviewed: ce7d54727c against 8aa5ab876d: Read the full pull request diff, changed test, compiler helper, repository rules and pull request template; inspected the host thread lookup and its callers. The large host source and runner were only partly inspected; recorded runs were read as reported evidence.; nothing run (a code review).

Checked and fine:

  • The test covers both append order and registry reordering after destruction, and the reported mutations fail on their intended cases.
  • The selected compiler command is passed as separate arguments to the fixture compiler.

Testing: The author reports Linux game runs and passing fixture and runner checks; native Windows testing is outstanding. CI is still running. No commands from the project were run during this review.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The lookup fix and its regression test address the reported reuse case, and the compiler selection issue is resolved. A native Windows game run and the remaining CI results are still needed before merge. Recommend approval; not approved on the forge. The lookup chooses the newest thread record for a reused guest address regardless of registry order, preventing calls from using an older record. The scan now visits the whole registry; the reported Linux measurements show no clear frame-time change. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/hos_thread.c:540`: The changed host thread lookup has not yet been exercised in a native Windows game run. *When:* Windows players use this same lookup and its native synchronization and thread lifecycle, while the reported game runs cover Linux only. **Do:** Build and play on native Windows as listed in Still to test, checking thread behavior and for crashes. **Since the last review** (on bff7861e1988) Resolved: L1 (The test hard-codes GCC and ignores the runner's selected CC, so it does not run on every…) Still open: L2 (The changed host thread lookup has not yet been exercised in a native Windows game run.) **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported game-free test fails on main and passes with the fix, including append and destroy-reordered cases. Two Linux runs on each side showed frame medians of 96.9/95.3 ms before and 93.5/99.2 ms after, within run-to-run variation. **Other systems:** The lookup affects host thread operations on Linux and Windows, independently of GPU. Linux play and fixture runs are reported; native Windows play remains untested. **Switches:** None. **Reviewed:** ce7d54727c63 against 8aa5ab876d7c: Read the full pull request diff, changed test, compiler helper, repository rules and pull request template; inspected the host thread lookup and its callers. The large host source and runner were only partly inspected; recorded runs were read as reported evidence.; nothing run (a code review). **Checked and fine:** - The test covers both append order and registry reordering after destruction, and the reported mutations fail on their intended cases. - The selected compiler command is passed as separate arguments to the fixture compiler. **Testing:** The author reports Linux game runs and passing fixture and runner checks; native Windows testing is outstanding. CI is still running. No commands from the project were run during this review. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2457
No description provided.