diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 10:52:32 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 10:52:32 -0500 |
| commit | 37fcb9f7c08d0c6a70ccfafbb4ed582fe895e97f (patch) | |
| tree | 2567f7f3430cf2ac4c3468ba07a3246e50eadb01 /runtime/test/submit_frame_test.cpp | |
| parent | 6eb37271300f182c6747331e5f81674a4b872949 (diff) | |
Runtime: two-tier mirror hot/cold policy, batched guards, fast fill & filter_pieces hook
- TitleWritePolicy (runtime/src/title_write_policy.h): lower submission-hot
threshold (kPromote 6 -> 3 of 8), add O(active) present_frame() frame-hot
tier (kFramePromote = 3 of 4, kFrameProbe = 16, unguarded on low-sub frames
<= 4 subs/frame and guarded on high-sub frames so mid-frame CPU writes are
never missed and 1-write/frame pages never copy 30x/frame), and sort/batch
page arms via optional Guard::arm_batch().
- HotColdTracking (runtime/src/title_mirror_hot_cold.h): expose on_present(),
coalesce contiguous 64 KiB VirtualProtect re-arms in CellGuard::arm_batch(),
and route MEM_WRITE_WATCH pages through title_write_watch::ask() with zero
guard faults or hot_tiles conflicts.
- TitleMirror (runtime/src/title_mirror.h): add optional TitleMirrorHooks::
filter_pieces hook passing fill_scratch_ and the 256-bit changed-piece mask
from fill() (eliminating duplicate 64 KiB guarded copies), and coalesce
contiguous changed pieces into single WC-friendly memcpy bursts while
preserving exact home.sums conflict detection.
- TitleHeap (runtime/src/title_heap.h): add portable reserve() helper for
MEM_WRITE_WATCH with silent fallback and write_watched() tracking.
- Tests: add unit tests in title_write_policy_test.cpp,
title_mirror_hooks_test.cpp, and title_heap_test.cpp.
AI-assisted: Antigravity (Gemini 4 Neon)
Diffstat (limited to 'runtime/test/submit_frame_test.cpp')
0 files changed, 0 insertions, 0 deletions