feat(libc): export the time_get facet vtable as data #9456
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9456"
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-21T22:35:40Z.
What
Export
time_get<char>'s vtable (NIDo4kt51-uO48) as thirteen zeroeduintptr_tslots so titles that resolve it as data get a 104-byte object matching consolelibSceLibcInternal, same pattern as the other facet vtables. Facet calls through the slots still fault until methods are wired (debt note). Additive with #8880 (time_get::id/ narrownum_getvtable) and #9038 (other facet_Getcatwork): distinct NIDs and symbols; edits land on adjacent lines in the same files.Tested
ctest --test-dir build-win -R guest_locale— passed (Windows MinGW), after rebase ontoupstream/main110a18ba0.python tools/check_conventions.py --base upstream/main— passed.o4kt51-uO48is STT_OBJECT st_size 104 in firmwarelibSceLibcInternal.sprx(FTP measurement).Checklist
Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-22T04:12:19Z.
Review: APPROVED
Checked against main
6ef5a1c4cand ps5-payload-dev/sdk sce_stubs/libSceLibcInternal.c:_ZTVSt8time_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEEis.type ..., @objectin the SDK table (L11858-11860), and SHA1 with the NID suffix giveso4kt51-uO48, so exporting it as data is correct._Incref/_Decref(the same order asGuestLocale::FacetVtable), and the sevendo_*virtuals oftime_get. It follows the existing zeroed codecvt/num_put vtables at LocaleSupport.cpp:298/300, and records the placeholder in the debt file, which those two do not.NotImplemented_nid_no_patchwould turn a facet use into a named failure, matching how other unimplemented paths fail.BUILD_TESTING=ONbuild) merged onto main6ef5a1c4c; the only failing step is the existingImageArrayWindowPastLayerLimit.cppalignment error that #8310 fixes. Not run here: this machine's Smart App Control blocks freshly built test executables.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:35:05Z.
Review: DISMISSED
The console object-size evidence and focused
guest_localetest are recorded, and the NID differs from #8880’stime_get::id. However, this branch remains based ona6dcea927, 47 commits behind current main (110a18ba01); please rebase and rerun the focused test, conventions and overlap checks. The overlap report also names #8880/#9038 in the shared locale source/test files and several debt-file comparisons it could not complete; manually verify and record a safe additive merge order. The genericUnblocksdescription does not meet the template requirement: usenoneor a title ID and its Game bring-up discussion. I did not run local tests for this follow-up.Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T04:37:23Z.
Rebased onto current
main(110a18ba0), reranguest_localeand conventions (both passed). Updated the checklist:Unblocks: none, and recordedDepends on/ merge order vs the overlapping locale PRs as requested.