feat(libc): export the messages facet vtable as data #10158
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10158"
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 mazen320 on 2026-10-23T11:14:27Z.
What
Export
messages<char>'s vtable (NIDFnEnECMJGag) as nine zeroeduintptr_tslots so titles that resolve it as data get a 72-byte object matching console titlelibc.prx(PPSA26344; samest_sizeas PPSA16833). Facet calls through the slots still fault until methods are wired (debt note).#9038 (
codecvt/numpunct/time_put_Getcat) has landed. Remaining open PRs that also touchdocs/dev/debt/libc.md(#6565 guest-arena lease note; #9371 symlink/..debt note) edit different sections of that file from this messages-vtable entry; compose with keep-both on rebase, not a stack. #10200 (numpunctvtable data) Depends on this PR and lands next among the locale facet-vtable exports.Tested
guest_locale_tests— passed (Windows MinGW).python tools/check_conventions.py --base upstream/main— passed.FnEnECMJGagis STT_OBJECTst_size72 in PPSA26344sce_module/libc.prx(dynsym via PT_DYNAMIC; FTP from the console).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)libc.mdsections — keep-both)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T11:22:03Z.
Review: APPROVED
Reviewed the current head
607cb17e0df5e690f670d4195b1904ff2f3a8fa5. I ran GCC 12.2 syntax-only checks forLocaleSupport.cppandGuestLocale.cpp, then compiled the exactLocaleSupport.cpp, linked a small runtime harness, and verified all nine exported slots are zero-initialized and writable;nm -Sreports the symbol size as 72 bytes. The hosted Windows relinker has now passed, as have the macOS and Ubuntu relinker runs, ASan, write-watch and register-context checks. The Linux/Windows product jobs are path-skipped, so I am not claiming those builds ran. The exact diff passes conventions,git diff --check, and a clean merge preview against currentmain. The body includes the NID and 72-byte console symbol evidence and separates the related facet PRs as orthogonal.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:03:57Z.
Review: CHANGES_REQUESTED
Correction to my earlier approval: I missed the subsequent overlap report, so that approval was premature. On the exact head
607cb17e0df5a690f670d4195b1904ff2f3a8fa5, the report identifies open #9038 inGuestLocale.cppand open #6565/#9371 in the samelibc.mdline. The checklist still saysDepends on: none, and I do not find an agreed landing order in this PR. CONTRIBUTING.md asks authors to agree which overlapping PR lands first and declare it withDepends on. Please coordinate with the affected authors and update the checklist to reflect the agreed order, preserving each change. This is a merge-sequencing requirement; I am not asking anyone to close or abandon a PR.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:29:19Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The mainline rebase and test rerun address my earlier merge-order concern. One checklist value still uses the wrong field: Unblocks is for a title ID and its Game bring-up discussion, while #10200’s dependency on this PR belongs in Depends on.
What I ran
52c09d567d.Results
Findings
Blocking
The PR body currently says Unblocks: #10200. The checklist defines Unblocks for a title ID and its Game bring-up discussion; PR sequencing belongs in Depends on. The separate #10200 body already records Depends on: #10158, so please change this PR’s Unblocks line to none (unless it directly unblocks a title, in which case list that title and discussion number).
This is a checklist correction only; I found no new code or test issue in the rebase.
Sources
Not verified
To get this to a good state
Correct the Unblocks field and rerun the report/checklist validation on the updated PR description.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:37:28Z.
Review: APPROVED
Re-checked — approved
The requested checklist correction is in place:
Unblocks: none, with #10200 correctly described as depending on this PR. The earlier mainline and overlap sequencing concern is also addressed in the PR description.What I ran
3b6fc299813d14a023d0cbe214cedf50a1fa7029against currentmain52c09d567d2fa453494dd720fcf53a98149468e4.git merge-tree --write-treeandgit diff --check.Results
git diff --checkUnblocks: none; #10200 remains inDepends on/landing-order textguest_locale_testsand conventions passed on this headI did not run a local build. The outstanding macOS checks are still pending, not failed; the exact-head focused report and clean diff resolve my requested change.