[pr-tests][memory] Check write-watch entries against the current asking #150
Loading…
Reference in a new issue
No description provided.
Delete branch "tyr0nsur/Darner:codex/watch-reservation-asking-epoch"
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?
Contributor role (optional)
What it changes
ask_once_by_res_splits_reservations_without_refusalsnow checks that the plain allocation has no write entry for the current asking. The write journal stores history by virtual address. When Windows reuses an address, an entry from an earlier asking can still be present. The test checks the two write-watched reservations against the current epoch and checks that the plain reservation is outside the set asked ahead.On
57dea7f2367c, three grouped runs with a temporary trace failed when the plain allocation carried the same older epoch before and after the asking. A controlled repro usedMEM_WRITE_WATCHfor the first allocation, recorded its write throughask_once, and reserved the same address as plain memory. The older epoch stayed at 1 while the mixed asking used 2, and the unguardedwrites_sincecall returnedNonefor that reservation. The original assertion failed in all three controlled runs. With the new assertion, all three passed. Win32 GetWriteWatchHow it was tested
cdabf1c863201fe05cee1e2c544db5557f0ac232, based on57dea7f2367c. Windows 11 build 26300, Rust 1.98.1 x86_64-pc-windows-msvc.cargo --config 'profile.test.debug=0' test --locked -p darner-gpu --lib watch:: -- --test-threads=1passed 88/88 in each of three runs.cargo --config 'profile.test.debug=0' test --locked -p darner-gpu --lib -- --test-threads=1passed 1,740 tests, with 81 ignored.texture::ahead::tests::late_completion_keeps_a_newer_list_refreshpassed withDARNER_UPLOAD_AHEAD=1andDARNER_PRELUDE_UPLOADS=1on an RTX 4060 8 GB, driver 621.40. Rancargo --config 'profile.test.debug=0' test --locked -p darner-gpu --lib texture::ahead::tests::late_completion_keeps_a_newer_list_refresh -- --exact --ignored --test-threads=1 --nocapture.cargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warningspassed.cargo run --locked --quiet --package xtask -- policychecked 553 files. The staged variant checked the one changed file. Both passed.Checklist
main.docs/asset-policy.md.Checked for overlap
Temporary diagnostic for the same-address reproduction
Apply this diagnostic to the base revision. Set the test switch and run the test below. Replace the original plain-entry assertion with the assertion from this PR to compare on the same fixture.
Independently tested
cdabf1c86320on Windows 11 build 26300, RTX 3060 Laptop GPU, driver 621.24, Rust 1.98.1 and Microsoft DXC 1.8.2505.32. I ran the compileddarner-gpulibrary test binary with--test-threads=1: 1,740 passed, 0 failed, 81 ignored.watch::tests::ask_once_by_res_splits_reservations_without_refusalspassed in the full suite. On unmodified upstreamad070f0, the same assertion failed in the full suite on this machine and passed in isolation. This also explains the failure reported in #202.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.