feat(libSceAmpr): implement Dinkumware thread launch helpers #3742

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/3742 into main
MarcZX10 commented 2026-10-11 16:16:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:16:07Z.


What

Implements the four Dinkumware std::_Pad thread helpers, adds guest tests for launch/release/destruction and failures, and documents the modeled layout and remaining differences in TechnicalDebt.

Carried David's ready commit unchanged onto current main, preserving author metadata. #3499 and #3679 touch the same libSceAmpr/Export.cpp and TechnicalDebt files for different exports; neither is a dependency, though the second change to merge may need a rebase.

Tested

Local Linux Release build and guest_ampr_threads: passed (1/1). tools/check_conventions.py --base upstream/main and git diff upstream/main --check pass.

Independent Linux verification reports guest_ampr_threads and the full suite (520/520) passed. The original Windows Release report records guest_ampr_threads 3/3 and full suite 513/513, with the #3329 test fix applied locally. Verification details are in issue #3361.

Checklist

  • Based on current main; no other open PR implements these exports
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw
  • No notes or investigation files added
  • Generic behavior
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820472232 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3742). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T16:16:07Z. --- ### What Implements the four Dinkumware `std::_Pad` thread helpers, adds guest tests for launch/release/destruction and failures, and documents the modeled layout and remaining differences in TechnicalDebt. Carried David's ready commit unchanged onto current `main`, preserving author metadata. #3499 and #3679 touch the same `libSceAmpr/Export.cpp` and TechnicalDebt files for different exports; neither is a dependency, though the second change to merge may need a rebase. ### Tested Local Linux Release build and `guest_ampr_threads`: passed (1/1). `tools/check_conventions.py --base upstream/main` and `git diff upstream/main --check` pass. Independent Linux verification reports `guest_ampr_threads` and the full suite (520/520) passed. The original Windows Release report records `guest_ampr_threads` 3/3 and full suite 513/513, with the #3329 test fix applied locally. Verification details are in issue #3361. ### Checklist - [x] Based on current `main`; no other open PR implements these exports - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw - [x] No notes or investigation files added - [x] Generic behavior - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 16:16:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:16:27Z.


Progress report (a11c8f7 → be2b77f)

📈 System libraries: 85.93% (+0.12%, +5 implemented functions)

✅ 5 implemented
Library Name
libSceAmpr PadEntry
libSceAmpr _ZNSt4_Pad7_LaunchEPP7pthread_nid_postfix
libSceAmpr _ZNSt4_Pad8_ReleaseEv_nid_postfix
libSceAmpr _ZNSt4_PadC2Ev_nid_postfix
libSceAmpr _ZNSt4_PadD2Ev_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111040629 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3742#issuecomment-6111040629). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T16:16:27Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → be2b77f) 📈 **System libraries**: 85.93% (+0.12%, +5 implemented functions) <details> <summary>✅ 5 implemented</summary> | Library | Name | | - | - | | libSceAmpr | `PadEntry` | | libSceAmpr | `_ZNSt4_Pad7_LaunchEPP7pthread_nid_postfix` | | libSceAmpr | `_ZNSt4_Pad8_ReleaseEv_nid_postfix` | | libSceAmpr | `_ZNSt4_PadC2Ev_nid_postfix` | | libSceAmpr | `_ZNSt4_PadD2Ev_nid_postfix` | </details>
github-actions[bot] commented 2026-10-11 16:33:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:33:01Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3743 _ZNSt4_Pad7_LaunchEPP7pthread_nid_postfix
_ZNSt4_Pad8_ReleaseEv_nid_postfix
_ZNSt4_PadC2Ev_nid_postfix
_ZNSt4_PadD2Ev_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111197280 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3742#issuecomment-6111197280). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T16:33:01Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3743 | | `_ZNSt4_Pad7_LaunchEPP7pthread_nid_postfix`<br>`_ZNSt4_Pad8_ReleaseEv_nid_postfix`<br>`_ZNSt4_PadC2Ev_nid_postfix`<br>`_ZNSt4_PadD2Ev_nid_postfix` | |
blawesom commented 2026-10-11 17:19:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T17:19:11Z.


Cross-reference: #3743 implements the same functions (the std::_Pad thread-launch helpers) — opened at the same minute (16:16 UTC).

CONTRIBUTING.md asks authors to "check that no open pull request already implements the same functions" before starting — both PRs are open, so flagging for the maintainers.

The limitation this creates: only one of the two can be merged; the other gets closed as duplicate.

Related: this is also the fix tracked in #3361, which has a two-platform-verified branch (blawesom:verify/3361, full suite green on Linux and macOS) — cross-linking so the maintainers can compare against the original author's commit if they prefer that.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111623728 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3742#issuecomment-6111623728). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-11T17:19:11Z. --- **Cross-reference: #3743 implements the same functions** (the `std::_Pad` thread-launch helpers) — opened at the same minute (16:16 UTC). CONTRIBUTING.md asks authors to "check that no open pull request already implements the same functions" before starting — both PRs are open, so flagging for the maintainers. **The limitation this creates:** only one of the two can be merged; the other gets closed as duplicate. Related: this is also the fix tracked in #3361, which has a two-platform-verified branch (`blawesom:verify/3361`, full suite green on Linux and macOS) — cross-linking so the maintainers can compare against the original author's commit if they prefer that.
oneandonlydean commented 2026-10-11 23:58:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:58:59Z.


Closing: #3743 carries the same commit, merges cleanly with main and keeps PadEntry out of the export inventory.

You're welcome to reopen this if you think it was closed by mistake or the situation changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115351317 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3742#issuecomment-6115351317). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:58:59Z. --- Closing: #3743 carries the same commit, merges cleanly with main and keeps `PadEntry` out of the export inventory. You're welcome to reopen this if you think it was closed by mistake or the situation changes.

Pull request closed

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!3742
No description provided.