feat(libSceIcu): implement data memory close #23487
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23487"
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 Thimo188 on 2026-11-19T04:41:15Z.
What
Implement
udata_close_nid_postfixwith its exact public ICU 68void(UDataMemory*)ABI and lifecycle behavior. The ICU 68.2 and bundled ICU 78 handle layouts are byte-compatible, but bundled ICU is compiled without file I/O, so this preserves ICU 68's platform map teardown directly before using ICU allocation ownership for heap handles or exact reinitialization for stack handles. Add focused coverage for null, zeroed and populated stack handles, repeated defined stack close, direct ICU parity, real mapped stack and heap handles, guards, errno, and the complete 56-byte layout.Tested
Ubuntu 24.04 linux/amd64 Docker (
anyps5-dev:24.04): fresh focused build 448/448; strengthened mapped-heap lifecycle test; post-rename incremental build 9/9; post-rebase build 81/81;guest_icu_recovered_signaturespassed on every final build; public-header audit and all compile batches 65/65; finaltest_registration,check_test_registration_script,public_headers,public_headers_compile_63, and focused CTest 5/5; exact exported C symbol verified. ICU 68.2 commit84e1f26ea77152936e70d53178a816dbfbf69989and bundled ICU 78UDataMemory,udata_close, initialization, allocator ownership, and POSIX/Win32/stdio map teardown paths were compared directly. Diff, debt-fold, conventions, current-base rebase, and overlap gates were run; no open PR implements this function.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T04:43:38Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
ee6f7dd1d2:tools/check_conventions.pypassed.guest_icu_recovered_signatures_testsbuilt cleanly.guest_icu_recovered_signatures):core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/RecoveredSignatures.hpp,core/libs/prx/libSceIcu/include/LegacyExports.hpp,core/libs/prx/libSceIcu/DataMemoryClose.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T04:55:37Z.
Review: APPROVED
Reviewed — looks good
The implementation and changed files reviewed support merging; reported builds and checks were not run during this review.
What I ran
Reviewed head
ee6f7dd1d2449dccb96ba0759c25d90066361fd9using the prepared diff and the pinned repository reader. No build or test commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Builds, tests, and platform behavior were not independently verified. The author reports Ubuntu 24.04 builds and checks in the PR description. No files were excluded from the review bundle.
To get this to a good state
Nothing is required.