feat(libSceJxr): implement descriptive metadata cleanup #15645
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15645"
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 santhoshkumar-dev on 2026-11-03T23:01:26Z.
What
FreeDescMetadata(XmDuKlVaRuo) currently throws through a parameterless placeholder. Bind itsvoid(DPKPROPVARIANT*)contract with a 16-byte LP64 guest record. LPSTR and LPWSTR payloads are released through the existing guestPKFreeand cleared; EMPTY, UI2 and UI4 retain their bytes. Null records and unsupported tags throw before the reference call. A cached tag lets a guest free callback retag the record while pointer cleanup still completes.The implementation stays in the unmodified, source-built pinned JXRGlueJxr.c. A C bridge and per-target symbol remapping route its
PKFreeto the guest heap. Layout follows JXRMeta.h; scalar storage is copied as object bytes without comparing indeterminate payload bytes. Console signatures, ownership and behavior remain unverified and are recorded in debt.The dependency line records integration order with older JXR work. The functions are independent at runtime; the branches edit neighboring declarations and the same inventory-debt paragraph. The paragraph now describes remaining parameterless exports without a fixed count.
Tested
Submitted head
075a9a4bf93688b1823807701997274e92f03f81, based on upstream main1c8c0efc8c41314402e6966da5bef6ea3d639d10.BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF: completelibstarget including all 406 packaged.prxfiles, the packaged loader and selected JXR executables build. 77/77 CTests pass, zero skips: public-header audit, all 64 compilation batches, the packaged-library loader and all 11 JXR tests. The new fixture runs by normal name and actual packaged NID, observing guest free callbacks, narrow/wide pointer clearing, repeat cleanup, tag/padding/canary preservation, retagging during free and unchanged unsupported records.FreeDescMetadata_nid_postfix not implemented.PKFreewith a recording free shim. This does not constitute a full Linux product or packaged-NID run.139e867b78e181a0812feb553b2db84a7ac168e3includes this code, the independent conversion-enumeration topic and #14425/#14631/#14905/#14916/#14933/#15148/#15232/#15479 after resolving shared-file conflicts. It builds and passes 20/20 selected checks: public-header audit and all 19 combined JXR tests, including both export modes for both new functions. #15626 was reviewed separately; its overlap with this topic is the debt paragraph and its four different default functions are not called by this cleanup.Conventions and whitespace pass. Final
tools/pr_overlap.py --branchscanned 1,810 open PRs and found no same-export collision. It reports the nine JXR file/debt conflicts recorded in Depends on, and exits 2 because #7645 already conflicts with main. The exact shared JXR CMake file was separately three-way merged for this branch with #7645: clean, exit 0. The new Windows test uses an isolated executable directory and explicitly stages only compiler runtimes, avoiding that PR's project-DLL staging. Open/closed/merged history, reviews and linked work were read; #13139 supplies only the prior throwing declaration.The full default executable/test build and entire CTest suite were not completed. macOS, physical console, title and GPU execution were not run. GPU testing is outside this library change.
Additional Linux validation on the submitted head. Ubuntu 24.04 x86-64 under WSL2, GCC 13.3, Ninja Release with bundled dependencies and tests enabled. The complete
libstarget and selected test executables build. All 11 JXR runtime tests pass, including both normal and packaged export modes, along with the packaged-library loader (12/12). The public-header audit and all 64 compile batches also pass when run directly from an ext4 copy of the exact submitted source. The initial mounted-drive audit timed out at 90 seconds, which skipped its 64 dependent CTest entries. The full CTest suite remains unrun.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)