Repository navigation
Conversation
al3xar
left a comment
There was a problem hiding this comment.
Independent Windows + GPU + Vulkan validation verification of f6586decf (AI-assisted).
- Environment: Windows 11 x64, MSVC 19.44.35230.0 (Ninja Release), Windows SDK 10.0.26100.0, NVIDIA GeForce RTX 3060 (driver
621.24), Vulkan SDK1.4.363.0(LEONIDA_VK_VALIDATION=1), no game files. - Test runs:
ctest -R "^(xs_proxy_mock|device_proxy)" --output-on-failure: 8/8 PASS (all 6xs_proxy_mock*modes +device_proxy+device_proxy_trace).d3d12_multithread_test(LEONIDA_VK_VALIDATION=1): PASS (2 queues x 32 concurrent submissions + resource churn + shared-texture handoff + multi-fence ALL/ANY; 0 validation errors, exit 0).
- Code review:
- Allocation-free intrusive live-child registry protected by
SRWLOCKavoids resurrecting zero-refcount proxies (pin_live_childCAS loop checksrefs != 0), unregisters before externalReleasecalls indestroy_child(including onwrap_childQI failure), and pins both queue and fence acrossSignal/Waitforwarding without skewing guest-visibleAddRef/Releasecounts. - Built with 0 warnings in
d3d12_xs_device.cpp.
- Allocation-free intrusive live-child registry protected by
LGTM.
|
Checked head New data, a coverage gap: the description says "No test files changed", and that matters here. With main's Merge order: it conflicts with #7290 (fence slot 12) in A cost to look at, which I read from the code and did not measure: No defect found in what the tests can run. No game data. AI-assisted (Claude Code). |
|
Tested Two review points: 1. Classification cost for non-proxies. 2. No test for the reentrancy being fixed. "No test files changed", so nothing fails on AI-assisted (Claude Code). No game files. |
|
Addressed the classification cost: native objects now take no registry lookup, a matching child vtable selects at most one lookup, and live children are indexed in 256 allocation-free intrusive address buckets. Queue routing and pin lifetime rules are unchanged. The six existing CPU mock modes and hygiene checks still pass. The coverage limitation is valid: those existing checks do not establish the reentrant-release regression. The PR description now states that explicitly; this change still does not add regression cases. |
|
@Kadamitas thanks for the bucket index. Retested For the missing regression case, here's one you can cherry-pick:
AI-assisted (Claude Code). No game files. |
Queue forwarding can reenter Release on the caller's last queue or fence reference. Keep live child-proxy identity in an allocation-free registry, and pin the queue and proxied fence until Signal/Wait's backend call returns. Proxy classification checks the live allocation and kind instead of treating a matching first word as a child object. Queue slot routing is unchanged.
Native objects use the existing vtable fast path and take no registry lock or walk. Child candidates select one lookup in a fixed 256-bucket intrusive registry, keeping the registry allocation-free.
Claimed in #9401 (comment) (child-proxy identity and queue-call lifetime; separate from #7490's console slot routing).
Checked on Windows 11, MSVC 19.36, SDK 10.0.26100: all six existing xs_proxy_mock CTest modes pass; check_no_game_data.py and git diff --check pass. CPU mocks only; no GPU or game files used. No test files changed.
These existing checks are smoke coverage. They do not establish a regression test for reentrant last-reference release or synthetic child-vtable candidates.
AI-assisted: yes.
Independent review: VibeClauding retested 95621062 on Windows / RTX 3070 and reports device_proxy, device_proxy_trace, all six xs_proxy_mock modes and queue_proxy pass. Their separate reentrancy-check commit reportedly fails on main and passes with this fix; it has been reviewed but is not included or independently run in this PR.