upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 00:20:36 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 00:31:48 -0500
commitacb39ee5cad567a5ef901c8cd0cd4c1e5aec7708 (patch)
tree004117525bffc2575d55b64e9dc48c3783d50fe6 /runtime/src/xma2_decoder.cpp
parent73e5f23621f21ec6e846da5fa2f31dd31fc0193b (diff)
A run of physical pages maps over several placeholders: they are joined first, where the title got null before
A view takes the place of exactly one placeholder. Pages mapped one by one leave one placeholder each when they are unmapped, so a run mapped at one stretch over them was refused by the host ("mapping physical pages failed (not a placeholder?)") and XMemMapPhysicalPages returned null. Whether this title does that is not known: no run was looked at for the warning. Now a run the host refuses has its ends cut out of what holds them and the placeholders under it joined (MEM_COALESCE_PLACEHOLDERS), and is tried again; where the host will not join them (several reservations) it goes in a page at a time. Only the path that failed before changes: a run that fits one placeholder is mapped by the same calls as before. The first four joins are logged. Needed before an allocation is made of several sections: a run over a section's end is two views, which leave two placeholders, and the next run there may lie inside one section. Ported from Op-lite/OP-lite e5e7120 (there after CGBJ's main and fork codec_d 9af81bc2), read in Trex/Dolores' op-lite branch (15edc0b). Test: consecutive_pages_replace_separate_placeholders (four pages mapped one by one, then at one stretch: null before, one view of four pages now). Run with it, one at a time: physical_pages_map_alias_and_unmap, pages_mapped_again_hold_what_they_held, a_title_thread_goes_on_using_the_rest_of_a_view, a_scatter_of_many_pages_is_what_one_after_the_other_is, page_mappings_done_later_show_what_the_pool_showed_at_the_call, a_read_in_place_never_meets_the_gap_of_a_remapping, mapping_no_pages_changes_nothing, pages_say_where_they_are_mapped. Not run in the game. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions