D3D12.X: a released allocator leaves nothing behind in alloc_pool #901
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/907"
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?
Imported from ivall/xcl. Originally posted by theaustinayers on 2026-11-24T08:02:22Z.
Fixes 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
upstream-sync referenced this pull request2026-11-26 09:07:49 +00:00