feat(libc): mspace memalign, malloc stats, thread-unsafe flag and nested mspaces #49
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/49"
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 oneandonlydean on 2026-09-28T01:24:43Z.
What
Four mspace gaps hit by a retail title:
sceLibcMspaceMemalignwasn't exported.sceLibcMspaceMallocStatsandsceLibcMspaceMallocStatsFastweren't exported.sceLibcMspaceCreaterejected flag1(SCE_LIBC_MSPACE_THREAD_UNSAFE).sceLibcMspaceCreaterejected an mspace created inside a block allocated from another mspace. The title's GPU heaps are carved out of its global heap this way. The failed create left a null handle, and the title's allocator later assertedOut of graphics memory.How
SceLibcMallocManagedSize(size checked against 0x28) from newinUse/peakInUsecounters on the arena. The system size is the arena's extent.Testing
mspacetest extended for memalign (alignment and invalid alignment), stats (current, peak, short struct), a nested create inside an allocation, a create over unallocated arena space (rejected), the thread-unsafe flag and an unknown flag (rejected).