feat(libkernel): implement sceKernelCheckedReleaseDirectMemory #721
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/721"
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 boykopovar/AnyPS5. Originally posted by merwie on 2026-10-05T17:59:08Z.
What
sceKernelCheckedReleaseDirectMemory(start, len)threwnot implemented. It now releases direct memory only when the whole range is allocated, with the semantics of shadPS4'ssceKernelCheckedReleaseDirectMemory/MemoryManager::Free(..., is_checked):SCE_KERNEL_ERROR_EINVAL;SCE_KERNEL_ERROR_ENOENTand releases nothing;sceKernelReleaseDirectMemory.PhysicalMemoryPoolgetsCheckedFree, which checks and releases under the pool lock;FreeandCheckedFreeshare the release body.GuestMemory: newCheckCheckedReleaseDirectMemorycovering misalignment, zero length, a range past the allocation (nothing released), a partial release after unmapping, a range overlapping a released page, and a double release.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT.
ctest: 286/288 passed, includingguest_memory.agc_driver_lds_atomics64andagc_driver_vopc_compare_tablefail on this machine onmainas well (Vulkan device tests).UnitySubsystems,globalgamemanagers.assetsandunity default resources.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)GuestMemory.cpp, in other places)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T05:46:58Z.
Progress report (
0518f0e→65e5c99)📈 System libraries: 79.24% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceKernelCheckedReleaseDirectMemory