gpu: reclaim empty Paged pages (ring-heap malloc growth) (#639) #640
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/640"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T21:05:07Z.
Summary
Pagedpages (ring-heap MALLOC growth) — prior commit.Stitch(mach_vm_remapper 64 KiB piece → one untagged VM region each). Preferwrap_title_memorywhen the title VA is already mapped (pieces=0); keep Stitch for unmapped VAs and gaps.VICTORY_TRACE_MEMORYbuffer lines report stitch piece counts vs title wraps.reports/world-vm-growth.md.Test plan
cargo test -p victory-gpu --lib mapped_gaplesscargo test -p victory-gpu --lib mirror_tests(47 passed)cargo test -p victory-metal stitch_of_n_pages_makes_about_n_vm_regionsfootprintbefore/after — blocked: headless tip dies at0xc000001dimage+0x55ff714 (~75 s, frame 0), same RVA as pre-fix attempt; never reaches world /TRACE_MEMORYspan lines.How it was tested
run-native.sh --headless --seconds 420withVICTORY_METAL_TEXTURE_BUDGET_MB=4348VICTORY_TEXTURE_DROP_TOP_MIP=1VICTORY_TRACE_MEMORY=5undergame.lock— abort before world.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.