mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
A run of adjacent heap mirrors is collected as one range. Once a refused heap keeps its mirror after its range has left the write watch, such a run can no longer be collected whole, and each of its mirrors is collected on its own: the unwatched one is refreshed in full and its watched neighbour by the blocks the CPU wrote. The test registers two adjacent heaps, takes a block of the first off the watch and writes to both, and checks that the next build keeps both mirrors and serves both writes, with the address-space cache and without it. Refreshing the whole run as unwatched instead leaves the neighbour's mirror without its write. The heaps share one allocation and the mock device imports nothing, so the test runs on every platform.