pipeline: exclude library loads by exact name #335

Manually merged
github merged 1 commit from github-bot/gh-335 into gh-pr/335/base 2026-12-03 18:34:27 +00:00 AGit
Owner

@⁠loyodea on GitHub · 2026-12-03 17:08 UTC · original
loyodea:fix/307-pipeline-name-locks → main · +155 −10 · 2 files · 1 commits · merged 2026-12-03 18:26 UTC

Different pipeline names could share one of 64 mutexes and wait behind another entry’s entire driver load. Track exact active names with a short bookkeeping lock and a condition variable; same-name loads remain serialized, and an RAII guard removes completed names even during unwinding.

Validation: five game-free Rust tests pass on the pinned Rust 1.98.1 for collision independence, same-name exclusion/wakeup, cleanup, unwinding, and poisoned bookkeeping. The reported two-name collision fails against the original function. Formatting of the helper and git diff --check pass.

Full project build and Linux AMD/Wine runtime validation were not run in this Windows environment. No gameplay performance gain is claimed.

Closes #307.

**@⁠loyodea** on GitHub · 2026-12-03 17:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/335) `loyodea:fix/307-pipeline-name-locks` → `main` · +155 −10 · 2 files · 1 commits · merged 2026-12-03 18:26 UTC Different pipeline names could share one of 64 mutexes and wait behind another entry’s entire driver load. Track exact active names with a short bookkeeping lock and a condition variable; same-name loads remain serialized, and an RAII guard removes completed names even during unwinding. Validation: five game-free Rust tests pass on the pinned Rust 1.98.1 for collision independence, same-name exclusion/wakeup, cleanup, unwinding, and poisoned bookkeeping. The reported two-name collision fails against the original function. Formatting of the helper and `git diff --check` pass. Full project build and Linux AMD/Wine runtime validation were not run in this Windows environment. No gameplay performance gain is claimed. Closes #307.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 17:11:34 +00:00
Author
Owner

@⁠ArturoWolff on GitHub · 2026-12-03 17:24 UTC · original

The fix addresses the different-name collision I reported in #307. I ran the five tests from 1d234cc unchanged on Linux with Rust 1.98.1: all passed. Thanks for keeping same-name exclusion and for separating the concurrency claim from gameplay performance.

One test-harness edge: in a private negative control I removed only changed.notify_all() and ran same_name_waits_until_the_first_load_finishes alone. Its five-second receive timed out, but the test process was still waiting at an external eight-second deadline (exit 124). The scoped worker stays asleep and join() waits before the failed assertion runs. That is not a hang in the submitted implementation. For a bounded regression test, one option is an Arc/unscoped worker that is joined on success but not on the receive-timeout path, or to run just this case in a deadline-limited child process.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Astra High).

**@⁠ArturoWolff** on GitHub · 2026-12-03 17:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/335#issuecomment-7386452488) The fix addresses the different-name collision I reported in #307. I ran the five tests from `1d234cc` unchanged on Linux with Rust 1.98.1: all passed. Thanks for keeping same-name exclusion and for separating the concurrency claim from gameplay performance. One test-harness edge: in a private negative control I removed only `changed.notify_all()` and ran `same_name_waits_until_the_first_load_finishes` alone. Its five-second receive timed out, but the test process was still waiting at an external eight-second deadline (exit 124). The scoped worker stays asleep and `join()` waits before the failed assertion runs. That is **not** a hang in the submitted implementation. For a bounded regression test, one option is an `Arc`/unscoped worker that is joined on success but not on the receive-timeout path, or to run just this case in a deadline-limited child process. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Astra High).
github-bot changed target branch from main to gh-pr/335/base 2026-12-03 18:31:43 +00:00
github manually merged commit 1d234cc011 into gh-pr/335/base 2026-12-03 18:34:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.