D3D12.X: a released allocator leaves nothing behind in alloc_pool #907
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!907
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/907/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@theaustinayers on GitHub · 2026-11-24 08:02 UTC · original
theaustinayers:alloc-release→main· +45 −0 · 2 files · 1 commits · merged 2026-11-24 08:02 UTCFixes the CI failure #897 left on
main:mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesfails there with E_INVALIDARG from a list Reset (run 45351827679, "Build and test (Windows, no GPU)").#897 keeps, by address, which PC allocator a title's allocator stands for. The entry stayed when the allocator was released, so a later allocator at the same address went on with the old one's PC allocator – of another type or device. In the suite,
alloc_pool's own test left such an entry and the split test's allocator then got that address. A title that releases its allocators would meet the same.What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs:forget– the allocator's entries go at its last Release; the PC allocators made for it are released when nothing records on them any more. The test now also releases the allocator while another PC allocator stands for it and checks that nothing is left.crates/xcl/src/hle/d3d12x/real.rs:alloc_releasecalls it.Tested
cargo build --workspace, thencargo test --workspace -- --test-threads=4: 716 passed, 0 failed, 41 ignored; no SKIPPED tests on this adapterRegression run
main (
11920b5is the commit of #897, merged as1c87b1d):PR:
Not tested
AI use
🤖 Generated with Claude Code