upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/host_cpu.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 21:30:07 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 21:30:07 -0500
commitb21b47b052f4c5f190d319a1519b1accf9a2e418 (patch)
tree766d58ff3719b45a528cb99a202693d80ff7bd85 /runtime/src/host_cpu.cpp
parent266f335dda39d8807f6ee5f44e89d5514d85ee8a (diff)
d3d12: no table keeps naming a destroyed title-window block
#2098's TitleBufferWindows::published_ and update_gpu_backed assumed blocks are never destroyed: for_each_block fed every block made so far into the console heap pass's backed table, and the table was rebuilt only when the published count grew. With empty blocks now destroyed, a freed block stayed in the table, and its "never of memory that is not there" contract broke. - A destroyed block's published_ slot keeps its other fields; only its address (now atomic) goes to 0, and for_each_block and find_mapped skip it. A slot is never reused before release(), so a lock-free reader never sees one half rewritten. - layout_generation() changes whenever a block is made or destroyed; update_gpu_backed uses it instead of the block count to see a change. - destroy_block tells the device (DeviceState::title_block_gone): the block's span goes into released_ranges, as a released backing's does, so the backed table cuts it at once and the key entries and heap slots answering into it go at the next refresh. A block is destroyed only once its last range was freed, after the GPU work that used it completed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/host_cpu.cpp')
0 files changed, 0 insertions, 0 deletions