mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
The review found that vk_memory.c mirror_evict picks its victims before it fetches their armed ranges without pool_lock, and skips a victim vk_pool_fini took off the mirrored list meanwhile. The bytes freed then fell short of what the caller needed, and the candidates after the victims were never tried, where the loop under one lock had moved on to the next. Now every candidate's range and mirror is kept, and the loop under the lock goes on through the candidates until the bytes are freed; a candidate past the first victims has its armed ranges fetched under the lock there, as every victim's were in 0.10.1. hot_check demotes every pool that qualifies, up to eight, so it has nothing to make up: its comment says that a candidate finalized meanwhile is not replaced, since its mirror goes with the pool. Rare, needing a finalize between the two locks; compile check only, as an eviction needs a device. Not reproduced before the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
366 KiB
366 KiB