diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 03:49:54 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 03:49:54 +0100 |
| commit | 95d25843e3faf8941ae5f8616ac59ff1c67c6437 (patch) | |
| tree | 9d576fd2a9e5142384b44b9a600bde35b5ba7cce /runtime/src/main.cpp | |
| parent | d1dff7949be62b6609c3c2ca937df7f50fbf1305 (diff) | |
d3d12: a write-back that faults does not take its tracker's lock again in the fault handler
ShadowPages::write_back copies a window's GPU writes back to the title's pages under the tracker's
SRW lock (#2129, and the 256-byte pieces of #2404). It reopens its own guard first, but the page can
still be read-only because of another guard (the geometry watch, another view's shadow). The copy
then faults, shadow_write_fault asks every tracker over the address, and this one's reopen() took
lock_ again on the thread that already held it. SRW locks are not recursive, so the title's
submitting thread hung for good: on an RTX 4070 Laptop (NVIDIA 621.40) the main loop froze at
209-309 s with no device loss, and the thread dumps showed the submitting thread inside
write_back -> (fault) -> shadow_write_fault -> reopen, waiting on the SRW lock, in four runs.
write_back records its thread in writer_ while it holds lock_; reopen() and reopen_range() skip
taking the lock on that thread (they run under it). Other threads still wait on the lock as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions