feat(libc): export the money_put facet vtable as data #12518
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12518"
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-28T16:58:27Z.
What
Export
money_put<char>'s vtable (NIDzdCex1HjCCM) as eight zeroeduintptr_tslots so titles that resolve it as data get a 64-byte object matching console titlelibc.prx(PPSA26344). Facet calls through the slots still fault until methods are wired (debt note).Stacked on #12511 (
money_get), which is stacked on #12510 (time_put). Tip includes both soGuestLocale.cpp/docs/dev/debt/libc.mdkeep all three tests and debt entries. Distinct from #12511.Tested
guest_locale_tests— passed (Windows MinGW).python tools/check_conventions.py --base upstream/main— passed.zdCex1HjCCMis STT_OBJECTst_size64 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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T17:00:26Z.
Review: CHANGES_REQUESTED
The new
money_put<char>object and its 64-byte console evidence are narrowly scoped, but current integration conflicts need author coordination before this can be considered merge-ready. I compared current head48dc9738e6c5with open #12510 (937a5651db81) and #12511 (a6d158d3b82a) usinggit merge-tree: the #12510 combination conflicts inGuestLocale.cppanddocs/dev/debt/libc.md; the #12511 combination also conflicts inLocaleSupport.cpp. The branch combines cleanly with current main, so these are specifically the concurrent facet PRs. CONTRIBUTING.md requires agreeing which overlapping PR goes first and declaring that relationship asDepends on; the current checklist saysnoneand the body’s keep-both note does not record an agreed order. Please coordinate with both authors and update the checklist/branches so the symbol, regression test and debt entries all survive. Hosted checks are still pending, so I have not approved.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T19:03:09Z.
Review: APPROVED
Re-checked — approval for the current head
I reviewed head
f1a39a4878b750176fa767802f286379a578dda9against currentmain319621ba2e578bd053b0baba2877fe70520e0737. Themoney_put<char>data export, regression test, and remaining debt entry are consistent, and the declared stack is #12510 → #12511 → #12518. I found no blocking correctness issue.What I ran
Environment: Debian 12 x86_64, GCC 12.2, CMake/Ninja build in
/tmp/AnyPS5-review-12518.I also inspected the changed implementation, test, technical-debt entry, PR description, contribution rules, and current hosted checks.
Results
mainguest_localetestmoney_put<char>vtable is a 64-byte global objectRaw output
The prior negative-control build removed only the new vtable definition from the isolated worktree; linking then failed with undefined references to the exact
money_put<char>symbol. The definition was restored, the target rebuilt, and the focused test passed again.Negative control
Removing the new vtable definition caused the isolated build to fail at link time on references to that symbol, confirming the test target depends on the export. Restoring the definition returned the focused test to passing. This checks symbol presence; it does not independently test writable memory behavior.
Findings
Blocking: None found.
Non-blocking: The PR overlaps locale files with #10158, #10200, #10165, and #9761. The author has acknowledged the keep-both rebase plan if one lands first, and the current branch merges cleanly with
main. Re-run the locale test after any such rebase. Some unrelated macOS jobs are still queued.Sources
Not verified
I did not independently test on Windows or a PS5 console. The Windows test and console measurement in the PR description are author-reported. Linux product CI was skipped; only the focused Linux locale target was built and run locally.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:04:04Z.
Review: APPROVED
Reviewed exact head
370fb1e8a43dbeb87862f244e96b6acd818b5d55against currentmain4c7d275bef89.The current stack order is recorded as #12510 → #12511 → #12518, and the checklist declares #12511 as this PR's dependency. The current head retains the three facet objects, canonical declarations and slot-count assertions across the stack. The
time_put<char>object is 7 slots (56 bytes); each money facet is 8 slots (64 bytes). The associated debt entries describe these as zeroed, data-only vtables whose virtual methods remain unsupported. The focused test checks zero initialization and writable storage for each object. The merge preview against currentmainis clean, andgit diff --checkpasses.The author reports
guest_locale_testsand conventions passing on the immediately preceding integrated stack tipe372f083(based onmain14b3441f3d). I compared that main to current4c7d275bef89; none of the four changed paths in this stack (GuestLocale.hpp,LocaleSupport.cpp,GuestLocale.cpp, ordocs/dev/debt/libc.md) changed in between. I therefore found no new code or integration issue on this rebase.I did not independently build or run the test in this workspace. The current exact-head hosted matrix was still pending when I checked it; Linux product tests are skipped by workflow policy. This approval records the code review and does not claim those pending jobs passed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:21:04Z.
Review: APPROVED
Reviewed — looks good
The
money_put<char>export adds the documented 64-byte placeholder beside the earlier two entries, with matching test coverage and debt documentation.What I ran
Reviewed head
e401496fc14d2872d1f4f8fb4e5b2fc0b456c547against current main5ecef095b61e7a406b279c97896f3a8a6fbd6353; merge preview tree1370ff0306d65bfa9f84a520f783ee4adc55bfeb.Results
Not verified
I did not run a local build/test or independently inspect the console image. The title-image symbol-size evidence and MinGW test result are reported by the author. This PR depends on #12511 and is ordered third after #12510 and #12511.