feat(libc): export the numpunct facet vtable as data #10200
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10200"
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-23T13:04:37Z.
What
Export
numpunct<char>'s vtable (NIDlJnP-cn0cvQ) as eleven zeroeduintptr_tslots so titles that resolve it as data get an 88-byte object matching console titlelibc.prx(PPSA26344). Facet calls through the slots still fault until methods are wired (debt note).Separate data-object correction from #9038 (
numpunct_Getcatimplementation). Also orthogonal in topic to other open facet-vtable exports (messages#10158,collate#9979,ctype#9735 / #9761,codecvt#10165 / #10180,num_put#9698 / #9845). Heads currently touch the same locale test/support files, so merge order is sequenced below.Tested
guest_locale_tests— passed (Windows MinGW; same patch applied on a sibling build tree).py -3.12 tools/check_conventions.py --base upstream/main— passed.lJnP-cn0cvQis STT_OBJECTst_size88 in titlelibc.prxfrom PPSA26344 (local ELF dynsym measurement).Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T13:08:33Z.
Review: DISMISSED
Reviewed exact head
afa75882e0947350f63699139f8c19a702838063. The exportednumpunct<char>symbol is a separate data-object correction from the_Getcatimplementation, and the 11-slot zero-initialization/writability test matches the measured 88-byte size. Hosted eligibility, conventions, intake, labels and report checks pass; remaining platform jobs are still in progress or path-skipped.\n\nBefore this can be approved, please resolve the overlap sequencing required by CONTRIBUTING.md. The PR describes #9038 as orthogonal, but a direct merge preview of these open heads conflicts inGuestLocale.cpp; a preview with open #10158 conflicts inLocaleSupport.cpp,GuestLocale.cpp, anddocs/dev/debt/libc.md. The checklist currently saysDepends on: none, and I found no agreed landing order with #9038. Please coordinate the order with #9038’s author and align the checklist/dependencies for #9038 and your #10158 branch so each second landing retains both changes. This is a merge-order request, not a request to close or abandon either PR.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:17:49Z.
Review: CHANGES_REQUESTED
Reviewed exact head
4098dd0401d8ad6818799a49617894fef8f7b9d4. The final diff now adds the measured 88-byte, 11-slot writablenumpunct<char>object, a focused guest test, and a debt entry. The reportedguest_locale_testsrun and the current hosted Windows, relinker, registration-context, write-watch, conventions, eligibility, labels, and report checks pass; hosted Linux product tests are skipped. I did not run a local build.I cannot approve this head against the repository rule that each branch be based on current
main: comparing currentmain(319621ba2e578bd053b0baba2877fe70520e0737) with this head reports 693 commits behind and 5 ahead. Please update the branch to currentmain, rerunguest_locale_testsand conventions on that tree, and retain the declared landing order after #10158. I found no defect in the final implementation diff.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:15:21Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The branch is now based on current
mainand the implementation/test diff is otherwise unchanged, but the checklist’sUnblocksvalue does not follow the repository’s title-specific requirement.What I ran
7865226ba130b828e11071a01cabdfcd69b1d04cagainst currentmain52c09d567d2fa453494dd720fcf53a98149468e4.git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-10200-20261029andgit diff --checkon the same range.guest_locale_testsand conventions passed on Windows MinGW; hosted Windows, Ubuntu relinker/register-context, relinker ASan, eligibility, labels, report and conventions pass. Linux product tests are skipped; macOS jobs are queued.Results
fa832e0f85f3ffe1f8c0aaea367985cb53eed104guest_locale_testspassed on the updated patch in a Windows MinGW sibling build treeRaw output
Negative control
st_sizemeasurement is author-provided.Findings
Blocking
Unblocks: titles that import the numpunct vtable as data. CONTRIBUTING requires a title ID and Game bring-up discussion for a PR that fixes a stop or wrong result seen on a title, and saysnoneotherwise. This PR identifies no affected title or discussion, so please change the checklist value toUnblocks: none(or provide the specific title ID and discussion if there is a measured title failure).Non-blocking
Sources
Not verified
guest_locale_testslocally or independently inspect the console ELF measurement. macOS jobs remain queued and Linux product tests were skipped.To get this to a good state
Set
Unblocks: noneunless a measured title stop/wrong result and its Game bring-up discussion are the reason this PR is needed. The current-main rebase and the reported focused test address my previous outstanding request.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:37:29Z.
Review: APPROVED
Re-checked — approved
The checklist now correctly says
Unblocks: none; #10200’s dependency on #10158 remains in the dependency/landing-order text. The current-main rebase and focused test report address my prior blockers.What I ran
7865226ba130b828e11071a01cabdfcd69b1d04cagainst currentmain52c09d567d2fa453494dd720fcf53a98149468e4.git merge-tree --write-treeandgit diff --check.Results
git diff --checkUnblocks: none; dependency on #10158 is retainedguest_locale_testsand conventions passed on this headI did not run a local build. The reported focused test and clean current-main integration resolve the requested changes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:34:41Z.
Review: CHANGES_REQUESTED
Re-review of the updated head
I checked current PR head
40e3dc391fb46b067ef64008d73b2e16856252cfagainst livemain578b8311ac93582237aaf4539c98378b6a108781. The current-main merge preview is clean andgit diff --checkpasses, but this head adds an unrelated dependency-pin regression:3rdparty/SPIRV-Headerschanges from the current-main gitlink01e0577914a75a2569c846778c2f93aa8e6fedddtob824a462d4256d720bebb40e78b9eb8f78bbb305.3rdparty/SPIRV-Toolschanges from current-main7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458to262bdab48146c937467f826699a40da0fdfc0f1a.Those changes are outside the locale-vtable work and replace the live
mainpins. Please drop the pin changes so this PR preserves currentmain's dependency versions, then rerun the focused locale tests and conventions on the resulting stack head. The hosted checks for the current head are still queued/running, so I have not treated the earlier passing report as validation of this revision.Other exact-head checks:
git merge-treeis clean;git diff --checkpasses. I did not run a local build or test.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:36:39Z.
Review: CHANGES_REQUESTED
Re-review of the rebased head
I rechecked current head
ffa448fe9ffa4677f9226300053d3650a3a3d453against livemain578b8311ac93582237aaf4539c98378b6a108781. The unrelated dependency-pin change from my previous review remains in this rebased tree:SPIRV-Headers: current-main gitlink01e0577914a75a2569c846778c2f93aa8e6feddd, PR treeb824a462d4256d720bebb40e78b9eb8f78bbb305.SPIRV-Tools: current-main gitlink7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458, PR tree262bdab48146c937467f826699a40da0fdfc0f1a.Please remove these unrelated pin changes so the locale-vtable work preserves live
main's dependencies. The current-head hosted checks are still running; the earlier focused test report predates this rebase, so please rerunguest_locale_testsand conventions on the final stack head after correcting the pins. Current-main merge preview is clean andgit diff --checkpasses. I did not run a local build/test.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T11:10:16Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The rebase onto current
mainba5b5330b377does not resolve the blocker from my previous review: the PR still changes theSPIRV-HeadersandSPIRV-Toolssubmodule gitlinks tob824a462and262bdab4, respectively, while current main pins01e05779and7f2d9ee9. These dependency changes are unrelated to exporting thenumpunctvtable and alter the repository's selected toolchain inputs.Please restore both gitlinks to current main, then rerun the focused locale tests and conventions on the corrected head. The exact current-head hosted checks are still running, so I have not treated the previous review as cleared.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T12:25:19Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The libc change is rebased cleanly, but this head still carries two unrelated SPIR-V submodule upgrades that are not part of the vtable export.
What I ran
Reviewed exact head
f4949ab684e2eead466e12cb69c4de9d2b08508eagainst currentupstream/main5454cd2e455994d992aca39335ce60507eeda1eb. The merge preview is clean (treef37e2ef21e5e4bc3f2edb0b3858de8340c75ba39); the branch is five commits ahead of the base. Environment: Linux x86-64, Git 2.39.5, Python 3.11.2. No build or tests were run because the blocking finding is unrelated submodule content.Results
git diff --check01e0577914→b824a462d47f2d9ee926→262bdab481Unedited check output
Merge preview:
Base/head count:
Diff check: no output; exit status 0.
Conventions:
Submodule comparison:
Negative control
Not applicable: this recheck is about two unrelated submodule revisions, not a behavior assertion.
Findings
Blocking
01e0577914a75a2569c846778c2f93aa8e6fedddand SPIRV-Tools to7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458; this head changes them tob824a462d4256d720bebb40e78b9eb8f78bbb305and262bdab48146c937467f826699a40da0fdfc0f1a. The intervening submodule commits are not needed for thenumpunct<char>vtable export and add unrelated dependency changes to this PR. Please restore both gitlinks to the current-main revisions. If those upgrades are needed, they should be proposed separately with their own scope and checks.Non-blocking
None found in the vtable export during this recheck.
Sources
5454cd25454cd2f4949abf4949abf4949abNot verified
I did not run a build or tests on this head. Hosted macOS checks were queued and the Linux product job was skipped. The latest hosted Windows, conventions, and policy checks passed.
To get this to a good state
Restore the two gitlinks to current
main, then I’ll rerun the same merge, diff, submodule and conventions checks on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T13:38:34Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The rebased head still changes two unrelated dependency submodule pins from current
main, so the prior overlap finding remains.What I ran
9f697019347d322b52d15d65aabd41ba468617ebagainst currentmaindfcc0e17cb254d08fec9ec120e362620795d59a0; the merge preview is clean.git diff --check upstream/main...refs/remotes/review/pr-10200; it passed with no output.Results
main514c39459992a90d7adc9b9dcb0d8d9f99b619c301e0577914a75a2569c846778c2f93aa8e6fedddtob824a462d4256d720bebb40e78b9eb8f78bbb3057f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458to262bdab48146c937467f826699a40da0fdfc0f1aUnedited command output
Negative control
Findings
Blocking
The SPIRV-Headers and SPIRV-Tools pins differ from current
mainand are unrelated to this PR's locale-vtable change. Please restore both current-main gitlinks, then rerun the focusedguest_locale_testsand conventions checks on the corrected head.Non-blocking
The merge preview is clean. Hosted checks for this head have not completed.
Sources
Not verified
I did not run
guest_locale_testson this head. The earlier reported locale test used a different head.To get this to a good state
Restore the two submodule pins to current
main, then rerun the same locale test, conventions check, merge preview, and diff check; I will recheck that exact head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T13:51:04Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The vtable change is unchanged, but this head still includes two unrelated SPIR-V submodule upgrades that are not part of the locale-vtable fix.
What I ran
b5d6bf093dd3b490930d5b4d19efff2f86863c90against currentmainb0465557fdf9daa302392cbd2e2d799fc59bbf79.2c65657135e846d03978099c34a8d85d60d64021.Results
git diff --check01e0577914a75a2569c846778c2f93aa8e6fedddtob824a462d4256d720bebb40e78b9eb8f78bbb3057f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458to262bdab48146c937467f826699a40da0fdfc0f1aguest_locale_testsUnedited command output
Negative control
Not applicable: the blocking finding is the unrelated dependency diff, not a behavior assertion.
Findings
Blocking
The SPIRV-Headers and SPIRV-Tools gitlinks still differ from current
main, and this PR'snumpunct<char>vtable does not require either upgrade. Please restore both gitlinks to the current-main revisions. Keep the locale-vtable work and the declared dependency on #10158.Non-blocking
I found no new issue in the vtable, guest test, or debt entry.
Sources
Not verified
I did not build the C++ targets, run
guest_locale_tests, or verify the console ELF measurement on this head. The author-reported locale test is from an earlier head.To get this to a good state
Restore both submodule pins to current
main, rerunguest_locale_testsand conventions on the corrected head, and request re-review. I will repeat the merge-preview, diff, submodule, and convention checks on that head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T19:58:31Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The rebase onto current
mainleaves two unrelated SPIRV submodule revisions in this locale-vtable PR, so the scope finding from my prior review remains unresolved.What I ran
5a25f7fd7b9261425b6505ab96b3c897245e4058.mainat420b6a064eadaa7c5e50b080c7fad59c41150b4b; merge preview is clean (77e53f8fb5ec8fe740d259f96504b247ee95ab3f).Results
77e53f8fb5ec8fe740d259f96504b247ee95ab3f.git diff --checkmain.Unedited output
Negative control
Not applicable: the finding concerns unrelated dependency changes, not a test assertion.
Findings
Blocking
The locale change does not require these SPIRV-Headers or SPIRV-Tools updates. Please restore both gitlinks to their
mainrevisions so the PR contains only the locale-vtable change and its declared dependency/order.Non-blocking
The locale-vtable implementation, zero/writable-storage test, and debt entry are unchanged in this rebase; I found no new issue in those changes.
Sources
Not verified
I did not build the target or run
guest_locale_testslocally. The available hosted product-test status did not include a result for this head.To get this to a good state
Restore the two submodule pins to current
main, rerunguest_locale_testsand conventions on the corrected head, and request re-review. I will rerun the same merge, diff, and convention checks on that head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T20:11:01Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The current-head rebase still changes two unrelated SPIRV submodule pins that are unchanged on current
main.What I ran
b8583ac8ca02ebaa26ddb5b950baa6f0a8c23316; base:fd9b3f62d43d6753d28a31a7c285e1f51e9c1b42.gh) against the GitHub API.Results
mergeable: true01e0577914a75a2569c846778c2f93aa8e6fedddtob824a462d4256d720bebb40e78b9eb8f78bbb305.7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458to262bdab48146c937467f826699a40da0fdfc0f1a.Unedited API output for the pin comparison
Negative control
Findings
Blocking
The locale-vtable implementation does not require either SPIRV submodule update. Please restore both gitlinks to the current
mainpins so this PR contains only the locale change and its declared dependency.Non-blocking
I found no new issue in the locale implementation from the available file diff. The focused locale tests were not run on this head.
Sources
mainatfd9b3f62d43d6753d28a31a7c285e1f51e9c1b42b8583ac8ca02ebaa26ddb5b950baa6f0a8c23316Not verified
No local compilation, focused locale tests, conventions run, or diff check on this exact head. Pending hosted jobs and the skipped Linux product job are not verified results.
To get this to a good state
Restore the two submodule pins to current
main, rerunguest_locale_testsand conventions on the corrected head, then request re-review. I will recheck the same scope and tests on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:18:43Z.
Review: APPROVED
Re-checked — new head, looks good
The current head removes the unrelated SPIR-V pin changes and contains the vtable export, writable-object test, and declared dependency on #10158.
What I ran
62f557dc71efd3ad5c450e9206f333c4797ca773; PR base and livemain:4c8cff191609bc5f28bf9ee2f93672b531285aa4.Results
9ae4ff5e914753fa764ed0d1fa1f9f314df5c636mainguest_locale_testspassing on Windows MinGW with the same patch in a sibling build tree; I did not run it locally.Unedited local check output
git diff --checkand the submodule comparison produced no output and exited 0.Findings
Blocking
None found in the current diff.
Non-blocking
The 88-byte console symbol measurement is author-reported; I did not independently inspect a console ELF. Hosted Windows and the remaining relinker jobs were still pending.
Sources
mainNot verified
I did not build or run
guest_locale_testslocally, and did not independently verify the console ELF measurement. The author reports that the same patch passed the focused test on Windows MinGW.