diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 10:51:23 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-27 10:51:23 -0500 |
| commit | 5543ba9f5f537909156ecee0bc98e51fa476a079 (patch) | |
| tree | 0345cf025c6fb85bd6eb156e908280c27fb3dba0 /runtime/test/submit_frame_test.cpp | |
| parent | 6eb37271300f182c6747331e5f81674a4b872949 (diff) | |
d3d12: eliminate orphan title windows, align mirror chunks, and speed up in-place heap filtering
Round 1A:
- Use VsharpPath::scratch for in-place console heaps in finish_in_place and fix_console_slot so they never allocate general-purpose title windows.
- Never fall through to make_title_window / ShadowPages in resolve_title_memory for addresses already covered by the page mirror.
- Guard vsharp_address's window-creation fallback with bytes <= kTitleWindowMax so oversized V# spans cannot allocate and reject orphan windows.
- Advance <= 2 GiB reservations in title_mirror_space::take past chunk boundaries so placed buffers stay within a single 2 GiB sparse chunk.
- Track arena-backed title windows and slot-133 shadows under ArenaUse::arena_window and report them in memory_breakdown.
Round 1C:
- Add re-entrancy-safe two-pass filter_heap_page_pieces() ready for TitleMirrorHooks::filter_pieces changed-piece mask.
- Reject guaranteed-unresolvable V# halves (null, unbacked bit-47, out-of-arena spans, non-title addresses without an alias) in O(1) inside filter_slot_locked without inserting into heap.records or deferring.
- Clear deferred slot records before finish_in_place and answer repeated V# halves from heap.records under page_mirror.mutex plus a per-batch dedup cache.
Tests:
- Added Linux unit tests in console_heap_slot_records_test (chunk alignment, arena window breakdown, deferred record clearing/answering).
- Added Wine regression tests in d3d12_heap_in_place_test and d3d12_page_mirror_test.
AI-assisted: Antigravity, Gemini 4 Neon
Diffstat (limited to 'runtime/test/submit_frame_test.cpp')
0 files changed, 0 insertions, 0 deletions