AnyPS5/core/libs/prx/libkernel/DirectMemory
Mouad-Scriptz-0 df3d027ebe perf(libkernel): find guest allocations and direct mappings by address
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>
2026-10-13 23:11:32 +13:00
..
DirectMemory.cpp perf(libkernel): find guest allocations and direct mappings by address 2026-10-13 23:11:32 +13:00
DirectMemory.hpp feat(libkernel): implement the JIT shared memory calls 2026-10-12 21:59:19 +02:00
Export.cpp perf(libkernel): find guest allocations and direct mappings by address 2026-10-13 23:11:32 +13:00
Jit.cpp fix(libkernel): create the JIT shared memory backing in one call 2026-10-12 21:59:19 +02:00
MemoryPool.cpp fix(libkernel): report the largest free direct memory block from sceKernelAvailableDirectMemorySize 2026-10-11 00:58:28 +02:00
MemoryPool.hpp fix(libkernel): correct the MemoryPool.hpp include guard 2026-10-06 14:57:51 +02:00
MemoryPoolExport.cpp fix(libkernel): forward entry type in sceKernelMemoryPoolBatch op 1 2026-10-12 11:31:52 +05:30
PosixMemory.cpp feat(libkernel): accept MADV_PROTECT advisory hint in madvise 2026-10-13 04:21:59 +05:30