feat(libc): export the money_get facet vtable as data #12511

Merged
mazen320 merged 4 commits from upstream-pr/12511 into main 2026-11-06 02:26:49 +00:00
mazen320 commented 2026-10-28 16:42:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-28T16:42:01Z.


What

Export money_get<char>'s vtable (NID 3n3wCJGFP7o) as eight zeroed uintptr_t slots so titles that resolve it as data get a 64-byte object matching console title libc.prx (PPSA26344). Facet calls through the slots still fault until methods are wired (debt note).

Stacked on #12510 (time_put vtable). Tip includes that commit so GuestLocale.cpp / docs/dev/debt/libc.md keep both tests and debt entries. #12518 (money_put) stacks next.

Tested

  • guest_locale_tests — passed (Windows MinGW).
  • python tools/check_conventions.py --base upstream/main — passed.
  • Console: 3n3wCJGFP7o is STT_OBJECT st_size 64 in PPSA26344 sce_module/libc.prx (dynsym via PT_DYNAMIC; FTP from the console).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #12510
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (libc data export)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5054187733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12511). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-28T16:42:01Z. --- ### What Export `money_get<char>`'s vtable (NID `3n3wCJGFP7o`) as eight zeroed `uintptr_t` slots so titles that resolve it as data get a 64-byte object matching console title `libc.prx` (PPSA26344). Facet calls through the slots still fault until methods are wired (debt note). Stacked on #12510 (`time_put` vtable). Tip includes that commit so `GuestLocale.cpp` / `docs/dev/debt/libc.md` keep both tests and debt entries. #12518 (`money_put`) stacks next. ### Tested - `guest_locale_tests` — passed (Windows MinGW). - `python tools/check_conventions.py --base upstream/main` — passed. - Console: `3n3wCJGFP7o` is STT_OBJECT `st_size` 64 in PPSA26344 `sce_module/libc.prx` (dynsym via PT_DYNAMIC; FTP from the console). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #12510 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (libc data export) - [x] AI-assisted: yes
rooklz commented 2026-10-28 21:11:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-28T21:11:16Z.

Review: COMMENTED


Reviewed exact head f2e5b8ca07 (which contains #12510 d1571b8973). It merges cleanly onto main 319621ba2e. This is the first run on macOS (arm64, Apple clang, ASan+UBSan and a plain -O1 build).

Setup. I built LocaleSupport.cpp, ApplicationHeap.cpp and GuestLocale.cpp standalone. Leaf symbols were shimmed: __error returns host errno, _Znwm/_ZdlPv use malloc/free, and snprintf/strftime forward to the host. Everything else aborts. Every check through CheckMoneyGetVtableObject passes, including both new ones. The later CheckTimePut fails identically on main, because my shim forwards to macOS strftime (%k), so it is not caused by this PR.

NIDs. tools/nid_names.compute_nid gives OwfBD-2nhJQ for _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE and 3n3wCJGFP7o for _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE. Both match the body and the debt lines. 7×8 = 56 and 8×8 = 64 match the quoted st_size. I did not re-measure the console.

Mutants (array size in LocaleSupport.cpp; the test's extern declaration is unchanged):

mutant ASan build plain build
time_put 6 slots killed (global-buffer-overflow) survives
time_put 8 slots survives survives
money_get 7 slots killed (global-buffer-overflow) survives
money_get 9 slots survives survives
non-zero first slot (each) killed killed

The PR's point is the st_size (56 / 64 bytes), but the new tests never check it. A larger object always passes. A smaller one is only caught under ASan, because the test's own extern ...[7] / [8] declarations fix the iteration count regardless of the definition. num_put<char> in the same file already avoids this with kNumPutCharVtableSlots + static_assert in GuestLocale.hpp and a sizeof check in the test.

Suggested diff. This follows the num_put precedent; conventions pass:

diff --git a/core/libs/prx/libc/include/GuestLocale.hpp b/core/libs/prx/libc/include/GuestLocale.hpp
index a3a323cfeb..7873b6ad40 100644
--- a/core/libs/prx/libc/include/GuestLocale.hpp
+++ b/core/libs/prx/libc/include/GuestLocale.hpp
@@ -191,5 +191,11 @@ static_assert(alignof(LocinfoStorage) == 8);
 inline constexpr std::size_t kNumPutCharVtableSlots = 14;
 static_assert(kNumPutCharVtableSlots * sizeof(std::uintptr_t) == 112);
 extern "C" std::uintptr_t _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kNumPutCharVtableSlots];
+inline constexpr std::size_t kTimePutCharVtableSlots = 7;
+static_assert(kTimePutCharVtableSlots * sizeof(std::uintptr_t) == 56);
+extern "C" std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kTimePutCharVtableSlots];
+inline constexpr std::size_t kMoneyGetCharVtableSlots = 8;
+static_assert(kMoneyGetCharVtableSlots * sizeof(std::uintptr_t) == 64);
+extern "C" std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kMoneyGetCharVtableSlots];
 
 #endif
diff --git a/core/libs/prx/libc/src/LocaleSupport.cpp b/core/libs/prx/libc/src/LocaleSupport.cpp
index b0ad77bab9..1a432a46e6 100644
--- a/core/libs/prx/libc/src/LocaleSupport.cpp
+++ b/core/libs/prx/libc/src/LocaleSupport.cpp
@@ -625,11 +625,11 @@ std::uint64_t _ZNSt7num_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEE2idE_n
 std::uintptr_t _ZTVSt7num_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[14] {};
 std::uint64_t _ZNSt8numpunctIcE2idE_nid_postfix = 0;
 std::uint64_t _ZNSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE_nid_postfix = 0;
-std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[7] {};
+std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kTimePutCharVtableSlots] {};
 std::uintptr_t _ZTVSt8time_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[13] {};
 std::uintptr_t _ZTVSt8time_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[13] {};
 std::uintptr_t _ZTVSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[17] {};
-std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[8] {};
+std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kMoneyGetCharVtableSlots] {};
 
 std::streamoff _ZSt7_BADOFF_nid_postfix = -1;
 std::fpos_t _ZSt4_Fpz_nid_postfix {};
diff --git a/core/libs/tests/GuestLocale.cpp b/core/libs/tests/GuestLocale.cpp
index d33ed51b27..3ab5d808a0 100644
--- a/core/libs/tests/GuestLocale.cpp
+++ b/core/libs/tests/GuestLocale.cpp
@@ -31,8 +31,6 @@ extern std::uintptr_t _ZTVSt8time_getIwSt19istreambuf_iteratorIwSt11char_traitsI
 extern std::uintptr_t _ZTVSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[17];
 extern std::uintptr_t _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[14];
 extern std::uintptr_t _ZTVSt5ctypeIcE_nid_postfix[14];
-extern std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[7];
-extern std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[8];
 
 }
 
@@ -513,6 +511,7 @@ static void CheckCtypeVtableObject() {
 }
 
 static void CheckTimePutVtableObject() {
+    Require(sizeof(_ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) == kTimePutCharVtableSlots * sizeof(std::uintptr_t));
     for (std::uintptr_t& slot : _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) {
         Require(slot == 0);
         slot = 0x1111;
@@ -559,6 +558,7 @@ static void CheckTimeGetWideVtableObject() {
 }
 
 static void CheckMoneyGetVtableObject() {
+    Require(sizeof(_ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) == kMoneyGetCharVtableSlots * sizeof(std::uintptr_t));
     for (std::uintptr_t& slot : _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) {
         Require(slot == 0);
         slot = 0x1111;

With it, all four size mutants fail at compile time in both builds (the definition and the shared declaration conflict), and the unmutated head still passes. The same pattern would apply to #12518's money_put next in the stack.

Gates: check_conventions --base upstream/main clean on head and with the diff; git merge-tree vs 319621ba2e clean.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5689751175 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12511#pullrequestreview-5689751175). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-28T21:11:16Z. **Review:** COMMENTED --- Reviewed exact head `f2e5b8ca07` (which contains #12510 `d1571b8973`). It merges cleanly onto main `319621ba2e`. This is the first run on macOS (arm64, Apple clang, ASan+UBSan and a plain -O1 build). **Setup.** I built `LocaleSupport.cpp`, `ApplicationHeap.cpp` and `GuestLocale.cpp` standalone. Leaf symbols were shimmed: `__error` returns host `errno`, `_Znwm`/`_ZdlPv` use malloc/free, and `snprintf`/`strftime` forward to the host. Everything else aborts. Every check through `CheckMoneyGetVtableObject` passes, including both new ones. The later `CheckTimePut` fails identically on main, because my shim forwards to macOS `strftime` (`%k`), so it is not caused by this PR. **NIDs.** `tools/nid_names.compute_nid` gives `OwfBD-2nhJQ` for `_ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE` and `3n3wCJGFP7o` for `_ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE`. Both match the body and the debt lines. 7×8 = 56 and 8×8 = 64 match the quoted `st_size`. I did not re-measure the console. **Mutants** (array size in `LocaleSupport.cpp`; the test's `extern` declaration is unchanged): | mutant | ASan build | plain build | |---|---|---| | time_put 6 slots | killed (global-buffer-overflow) | **survives** | | time_put 8 slots | **survives** | **survives** | | money_get 7 slots | killed (global-buffer-overflow) | **survives** | | money_get 9 slots | **survives** | **survives** | | non-zero first slot (each) | killed | killed | The PR's point is the `st_size` (56 / 64 bytes), but the new tests never check it. A larger object always passes. A smaller one is only caught under ASan, because the test's own `extern ...[7]` / `[8]` declarations fix the iteration count regardless of the definition. `num_put<char>` in the same file already avoids this with `kNumPutCharVtableSlots` + `static_assert` in `GuestLocale.hpp` and a `sizeof` check in the test. **Suggested diff.** This follows the `num_put` precedent; conventions pass: ```diff diff --git a/core/libs/prx/libc/include/GuestLocale.hpp b/core/libs/prx/libc/include/GuestLocale.hpp index a3a323cfeb..7873b6ad40 100644 --- a/core/libs/prx/libc/include/GuestLocale.hpp +++ b/core/libs/prx/libc/include/GuestLocale.hpp @@ -191,5 +191,11 @@ static_assert(alignof(LocinfoStorage) == 8); inline constexpr std::size_t kNumPutCharVtableSlots = 14; static_assert(kNumPutCharVtableSlots * sizeof(std::uintptr_t) == 112); extern "C" std::uintptr_t _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kNumPutCharVtableSlots]; +inline constexpr std::size_t kTimePutCharVtableSlots = 7; +static_assert(kTimePutCharVtableSlots * sizeof(std::uintptr_t) == 56); +extern "C" std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kTimePutCharVtableSlots]; +inline constexpr std::size_t kMoneyGetCharVtableSlots = 8; +static_assert(kMoneyGetCharVtableSlots * sizeof(std::uintptr_t) == 64); +extern "C" std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kMoneyGetCharVtableSlots]; #endif diff --git a/core/libs/prx/libc/src/LocaleSupport.cpp b/core/libs/prx/libc/src/LocaleSupport.cpp index b0ad77bab9..1a432a46e6 100644 --- a/core/libs/prx/libc/src/LocaleSupport.cpp +++ b/core/libs/prx/libc/src/LocaleSupport.cpp @@ -625,11 +625,11 @@ std::uint64_t _ZNSt7num_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEE2idE_n std::uintptr_t _ZTVSt7num_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[14] {}; std::uint64_t _ZNSt8numpunctIcE2idE_nid_postfix = 0; std::uint64_t _ZNSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE_nid_postfix = 0; -std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[7] {}; +std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kTimePutCharVtableSlots] {}; std::uintptr_t _ZTVSt8time_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[13] {}; std::uintptr_t _ZTVSt8time_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[13] {}; std::uintptr_t _ZTVSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[17] {}; -std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[8] {}; +std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[kMoneyGetCharVtableSlots] {}; std::streamoff _ZSt7_BADOFF_nid_postfix = -1; std::fpos_t _ZSt4_Fpz_nid_postfix {}; diff --git a/core/libs/tests/GuestLocale.cpp b/core/libs/tests/GuestLocale.cpp index d33ed51b27..3ab5d808a0 100644 --- a/core/libs/tests/GuestLocale.cpp +++ b/core/libs/tests/GuestLocale.cpp @@ -31,8 +31,6 @@ extern std::uintptr_t _ZTVSt8time_getIwSt19istreambuf_iteratorIwSt11char_traitsI extern std::uintptr_t _ZTVSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE_nid_postfix[17]; extern std::uintptr_t _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[14]; extern std::uintptr_t _ZTVSt5ctypeIcE_nid_postfix[14]; -extern std::uintptr_t _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[7]; -extern std::uintptr_t _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix[8]; } @@ -513,6 +511,7 @@ static void CheckCtypeVtableObject() { } static void CheckTimePutVtableObject() { + Require(sizeof(_ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) == kTimePutCharVtableSlots * sizeof(std::uintptr_t)); for (std::uintptr_t& slot : _ZTVSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) { Require(slot == 0); slot = 0x1111; @@ -559,6 +558,7 @@ static void CheckTimeGetWideVtableObject() { } static void CheckMoneyGetVtableObject() { + Require(sizeof(_ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) == kMoneyGetCharVtableSlots * sizeof(std::uintptr_t)); for (std::uintptr_t& slot : _ZTVSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix) { Require(slot == 0); slot = 0x1111; ``` With it, all four size mutants fail at compile time in both builds (the definition and the shared declaration conflict), and the unmutated head still passes. The same pattern would apply to #12518's `money_put` next in the stack. Gates: `check_conventions --base upstream/main` clean on head and with the diff; `git merge-tree` vs `319621ba2e` clean. AI-assisted: yes
MarcZX10 commented 2026-10-29 05:15:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:15:50Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The rebased stack now includes a compile-time slot-count/size contract and the object test that was previously missing, but the checklist still uses Unblocks for the next PR rather than a title bring-up.

What I ran

  • Inspected head 470a5c88c53f3bd5ad2a71f1da82d52a6d15621d against current main 52c09d567d2fa453494dd720fcf53a98149468e4.
  • Ran a current-main merge preview and git diff --check for the exact-head diff.
  • Checked the author’s focused-test report and hosted checks. The author reports guest_locale_tests and conventions passed on the updated Windows MinGW stack tip; current conventions, eligibility, labels, report, Ubuntu/Windows relinker, Ubuntu register-context and relinker ASan pass. Linux product tests are skipped; macOS jobs are queued.
  • Reviewed the added kTimePutCharVtableSlots / kMoneyGetCharVtableSlots constants and static_asserts, plus sizeof checks for both writable objects.

Results

Check Result
Current-main merge preview Clean; tree f3845236258f29585d1a0c38b96b40da8eca98ee
Diff whitespace Passed; no output
Focused locale test Author reports guest_locale_tests passed on the updated Windows MinGW stack tip
Hosted checks Listed passing checks above; Linux product skipped; macOS jobs queued
Raw output
$ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-12511-20261029
f3845236258f29585d1a0c38b96b40da8eca98ee
exit=0
$ git diff --check refs/review/main-20261029b...refs/review/pr-12511-20261029
(no output; exit=0)

Negative control

  • Not rerun on this head. The prior independent report found that the original test could not reject an oversized object; the new shared slot-count constants/static assertions and size checks address that specific gap. The current test outcome is author-reported.

Findings

Blocking

  • The checklist says Unblocks: #12518, but that is the next PR in the stack, not a title ID and Game bring-up discussion for a measured title stop or wrong result. CONTRIBUTING requires Unblocks: PPSA... #... for such a title-specific fix, and none otherwise. Please set this field to Unblocks: none; the stack order is already captured by Depends on: #12510 and the PR body.

Non-blocking

  • The eight-slot object, measured size, newly coupled declaration/definition extent, and debt entry are consistent in the reviewed diff.

Sources

Not verified

  • I did not run guest_locale_tests locally or independently inspect the console ELF measurements. macOS jobs are queued and Linux product tests were skipped.

To get this to a good state

Change the checklist to Unblocks: none. The current-main rebase and the added size contract address the previous technical concern.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693172713 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12511#pullrequestreview-5693172713). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:15:50Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The rebased stack now includes a compile-time slot-count/size contract and the object test that was previously missing, but the checklist still uses `Unblocks` for the next PR rather than a title bring-up. ## What I ran - Inspected head `470a5c88c53f3bd5ad2a71f1da82d52a6d15621d` against current `main` `52c09d567d2fa453494dd720fcf53a98149468e4`. - Ran a current-main merge preview and `git diff --check` for the exact-head diff. - Checked the author’s focused-test report and hosted checks. The author reports `guest_locale_tests` and conventions passed on the updated Windows MinGW stack tip; current conventions, eligibility, labels, report, Ubuntu/Windows relinker, Ubuntu register-context and relinker ASan pass. Linux product tests are skipped; macOS jobs are queued. - Reviewed the added `kTimePutCharVtableSlots` / `kMoneyGetCharVtableSlots` constants and `static_assert`s, plus `sizeof` checks for both writable objects. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `f3845236258f29585d1a0c38b96b40da8eca98ee` | | Diff whitespace | Passed; no output | | Focused locale test | Author reports `guest_locale_tests` passed on the updated Windows MinGW stack tip | | Hosted checks | Listed passing checks above; Linux product skipped; macOS jobs queued | <details> <summary>Raw output</summary> ```text $ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-12511-20261029 f3845236258f29585d1a0c38b96b40da8eca98ee exit=0 $ git diff --check refs/review/main-20261029b...refs/review/pr-12511-20261029 (no output; exit=0) ``` </details> ## Negative control - Not rerun on this head. The prior independent report found that the original test could not reject an oversized object; the new shared slot-count constants/static assertions and size checks address that specific gap. The current test outcome is author-reported. ## Findings ### Blocking - The checklist says `Unblocks: #12518`, but that is the next PR in the stack, not a title ID and Game bring-up discussion for a measured title stop or wrong result. CONTRIBUTING requires `Unblocks: PPSA... #...` for such a title-specific fix, and `none` otherwise. Please set this field to `Unblocks: none`; the stack order is already captured by `Depends on: #12510` and the PR body. ### Non-blocking - The eight-slot object, measured size, newly coupled declaration/definition extent, and debt entry are consistent in the reviewed diff. ## Sources - [Contribution rule at current main](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/CONTRIBUTING.md#L62-L64) - [Checklist template at current main](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/.github/pull_request_template.md#L15-L18) - [Header slot-size contract at reviewed head](https://github.com/boykopovar/AnyPS5/blob/470a5c88c53f3bd5ad2a71f1da82d52a6d15621d/core/libs/prx/libc/include/GuestLocale.hpp) - [Implementation and regression checks at reviewed head](https://github.com/boykopovar/AnyPS5/blob/470a5c88c53f3bd5ad2a71f1da82d52a6d15621d/core/libs/tests/GuestLocale.cpp) ## Not verified - I did not run `guest_locale_tests` locally or independently inspect the console ELF measurements. macOS jobs are queued and Linux product tests were skipped. ## To get this to a good state Change the checklist to `Unblocks: none`. The current-main rebase and the added size contract address the previous technical concern.
MarcZX10 commented 2026-10-29 05:37:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:37:32Z.

Review: APPROVED


Re-checked — approved

The checklist now uses Unblocks: none; the dependency on #12510 remains correctly declared, and the stack position is unchanged. The current stack test report and the previous macOS review support the implementation and layout.

What I ran

  • Reviewed exact head 470a5c88c53f3bd5ad2a71f1da82d52a6d15621d against current main 52c09d567d2fa453494dd720fcf53a98149468e4 and its declared base #12510.
  • Ran git merge-tree --write-tree and git diff --check.
  • Checked the author’s test report, prior independent macOS review, and current hosted checks.

Results

Check Result
Current-main merge preview Clean
git diff --check Passed
Checklist Unblocks: none; dependency on #12510 retained
Focused test and conventions Author reports guest_locale_tests and conventions passed on the stack tip containing this head; an independent macOS review reported its focused layout/object checks passed on the prior stack head
Hosted checks Eligibility, conventions, labels, report, relinker, ASan, register-context, write-watch, and Windows checks pass; two macOS jobs remain queued; Linux product job is skipped

I did not run a local build. The stack-specific focused evidence and resolved checklist blocker are sufficient for approval; queued checks are not represented as completed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693327674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12511#pullrequestreview-5693327674). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:37:32Z. **Review:** APPROVED --- # Re-checked — approved The checklist now uses `Unblocks: none`; the dependency on #12510 remains correctly declared, and the stack position is unchanged. The current stack test report and the previous macOS review support the implementation and layout. ## What I ran - Reviewed exact head `470a5c88c53f3bd5ad2a71f1da82d52a6d15621d` against current `main` `52c09d567d2fa453494dd720fcf53a98149468e4` and its declared base #12510. - Ran `git merge-tree --write-tree` and `git diff --check`. - Checked the author’s test report, prior independent macOS review, and current hosted checks. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | `git diff --check` | Passed | | Checklist | `Unblocks: none`; dependency on #12510 retained | | Focused test and conventions | Author reports `guest_locale_tests` and conventions passed on the stack tip containing this head; an independent macOS review reported its focused layout/object checks passed on the prior stack head | | Hosted checks | Eligibility, conventions, labels, report, relinker, ASan, register-context, write-watch, and Windows checks pass; two macOS jobs remain queued; Linux product job is skipped | I did not run a local build. The stack-specific focused evidence and resolved checklist blocker are sufficient for approval; queued checks are not represented as completed.
MarcZX10 commented 2026-10-30 04:21:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:21:02Z.

Review: APPROVED


Reviewed — looks good

The money_get<char> export adds the documented 64-byte placeholder alongside the earlier time_put<char> entry, with matching test coverage and debt documentation.

What I ran

Reviewed head 8c1c5dca13ce745ae2adde1675a69c93c9b8e91d against current main 5ecef095b61e7a406b279c97896f3a8a6fbd6353; merge preview tree 7a01089e490359b7bb0bb7fc56004f8877a24f3c.

git merge-tree --write-tree refs/remotes/upstream/main refs/remotes/upstream/pr-12511
git diff --check refs/remotes/upstream/main...refs/remotes/upstream/pr-12511

Results

Check Result
Merge preview Clean
Diff check Passed; no output
Hosted conventions and Windows build Passed
Linux/product and specialized platform checks Skipped or still queued

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 #12510 and is ordered after it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5708041366 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12511#pullrequestreview-5708041366). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T04:21:02Z. **Review:** APPROVED --- # Reviewed — looks good The `money_get<char>` export adds the documented 64-byte placeholder alongside the earlier `time_put<char>` entry, with matching test coverage and debt documentation. ## What I ran Reviewed head `8c1c5dca13ce745ae2adde1675a69c93c9b8e91d` against current main `5ecef095b61e7a406b279c97896f3a8a6fbd6353`; merge preview tree `7a01089e490359b7bb0bb7fc56004f8877a24f3c`. ```sh git merge-tree --write-tree refs/remotes/upstream/main refs/remotes/upstream/pr-12511 git diff --check refs/remotes/upstream/main...refs/remotes/upstream/pr-12511 ``` ## Results | Check | Result | |---|---| | Merge preview | Clean | | Diff check | Passed; no output | | Hosted conventions and Windows build | Passed | | Linux/product and specialized platform checks | Skipped or still queued | ## 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 #12510 and is ordered after it.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12511
No description provided.