mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
sceKernelVirtualQuery, sceKernelMunmap, sceKernelReleaseDirectMemory and the reservation paths walked a copy of the whole allocation registry or of every direct mapping under one lock on each call. The registry now answers lookups from its ordered map, applies range replacements as patches instead of rebuilding the map, and direct mappings carry an index by physical offset so a release finds only the mappings it covers. Minecraft (PPSA17221) holds about 7,000 direct mappings and spent its world generation in these walks. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>