Repository navigation
Conversation
All 52 exports were parameterless stubs throwing through NotImplemented_nid_no_patch with unverified signatures. They now form a host-side allocator and tracker: malloc-backed heap, mspace and pool allocators with capacity accounting, validated id registries for owners, resources, types and groups and their AGC twins, marker, tag and bookmark state, and virtual-range reservations. Guest memory goes through GuestCopyIn and GuestCopyOut with errno preserved; argument errors report EINVAL, unreadable or unwritable guest pointers EFAULT and host exhaustion ENOMEM. Physical and direct-memory operations validate their arguments and report ENOSYS instead of throwing: the host has no console memory to back them. No libSceMat.sprx ships in retail firmware (absent from ps5dumps/unp.index.csv across 44 versions, no sceMat string in PS5UPDATE1.PUP.dec, no import in the PPSA28769 executable), so the signatures follow the in-repo sceLibcMspace convention and stay unverified; the gaps are recorded in the new Functional debt entries. Evidence: guest_mat (new, covers all 52 exports) passes, guest_pointer_audit is clean and the public_headers audit verifies the rewritten Api.hpp.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The host allocator and tracker implementation has no verified blocking defect, but the exported signatures and behavior remain unverified against the console.
What I ran
Reviewed head 88a745aa24453f0df504ae7413d5d30bcf3c322c using the prepared review files and inspected the changed implementation and tests. No tests or builds were run. An attempt to use repo_read.py failed because it could not append to its read log in the read-only workspace.
Results
| Check | Result | Note |
|---|---|---|
| Changed files | passed | All six reviewed files were read |
| Tests and build | not run | Would require executing or compiling code |
| Reader source context | not run | Read-only log error |
Negative control
Not run; the test executable was not run.
Findings
Blocking
None.
Non-blocking
None.
Sources
The allocator and tracker behavior reviewed here is in Export.cpp at the reviewed head. The PR records the signatures and behavior as unverified technical debt in libSceMat.md at the reviewed head.
Not verified
Could not inspect repository callers or surrounding source through repo_read.py; its log append failed in the read-only workspace. Console ABI, signatures, and behavior were not verified. The author reports Windows MinGW-w64 tests and checks, but those were not run during this review. Read: core/libs/CMakeLists.txt, core/libs/prx/libSceMat/Export.cpp, core/libs/prx/libSceMat/include/Api.hpp, core/libs/tests/GuestMat.cpp, docs/dev/debt/changes/feat-libscemat-host-model.md, and docs/dev/debt/libSceMat.md. Excluded by rule: none.
To get this to a good state
Nothing is required. Optional: verify the modeled signatures and behavior against console evidence when available.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Manual overlap review for the
Conclusion: no functional or same-line overlap with any of the 7; no |
What
Implements all 52
libSceMatexports as a host-side allocator and tracker (previously parameterlessNotImplemented_nid_no_patchstubs with unverified signatures).malloc, with capacity accounting; frees of unknown or arena-mismatched pointers are ignored.GuestCopyIn/GuestCopyOutwitherrnopreserved;EINVALfor argument errors,EFAULTfor unreadable or unwritable guest pointers,ENOMEMfor host exhaustion.ENOSYSinstead of throwing: the host has no console memory to back them. Nothing here is a silent stub — every path either implements the tracking or reports an error — so the new entries go under Functional, not Silent stubs.sceLibcMspaceconvention and stay unverified: nolibSceMat.sprxships in retail firmware (absent fromps5dumps/unp.index.csvacross 44 versions 1.00 through 12.70, nosceMatstring inPS5UPDATE1.PUP.dec, no import in thePPSA28769executable). Gaps are recorded in the new Functional debt entries; the pendingdocs-libscemat-absent-1360fragment still applies cleanly.Tested
Windows, MinGW-w64 GCC (ucrt64), Release build:
cmake --build build --target libSceMat guest_mat_tests, thenctest --test-dir build -R "^guest_mat$" --output-on-failure: 1/1 passed (Mat tests passed).python3 tools/guest_pointer_audit.py libSceMat: 0 findings.python3 core/libs/tests/test_public_headers.py --audit-only: 413 libraries, 35106 exports verified.python3 tools/debt_fold.py --check: clean.python3 tools/check_conventions.py: no findings on these files (1 pre-existing error and 2 warnings in unrelated fragments remain).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)