feat(libSceLibcInternal): implement atomic wait remaining timeout #16148
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16148"
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 MarrasFederico on 2026-11-05T18:46:28Z.
What
Implement the no-timeout sentinel, expired deadlines and the source-defined ten-day timeout cap using the host monotonic clock. The console clock epoch remains unverified.
Source and remaining gap: __std_atomic_wait_get_remaining_timeout - not measured on a PS5; the console clock epoch is unverified. The no-timeout sentinel, expired deadlines and ten-day timeout cap follow Microsoft STL. Windows uses GetTickCount64 and POSIX uses CLOCK_MONOTONIC in milliseconds; a POSIX clock query failure throws.
python3 tools/pr_overlap.py --branch feat/libcinternal-atomic-timeout --repo boykopovar/AnyPS5 --base main --jobs 2examined 1876 open PRs. Confirmed textual overlaps: #15460 #15577 #15581 #15657 #15697 #15711 #15822 #16004 #16029; the report contains no shared export. The command exited 2 because 6 older heads conflict with its base. I compared each reported head against its own merge base, including the original stub location: none changes or adds__std_atomic_wait_get_remaining_timeout. Pairwise merge checks also report shared-file conflicts; these do not establish a functional dependency. Other inventory changes may need textual reconciliation when merging.Tested
Ubuntu 26.04.1 LTS x86-64, GCC 15.2.0, Release,
BUILD_TESTING=ON; tested main commitce694129c4ffaaafe7fe3621ac7e038aca7b79f7.guest_libc_internal_mtx_testswithnice -n 19 cmake --build build --parallel 2 --target guest_libc_internal_mtx_tests. Only one target was built at a time.ctest --test-dir build -R '^guest_libc_internal_mtx$' --output-on-failurepasses with the new cases in the existing guest test.__std_atomic_wait_get_remaining_timeout_nid_postfixwith the original throwing body. After rebuilding the same target, the test failed with__std_atomic_wait_get_remaining_timeout_nid_postfix not implemented. Restoring the implementation, rebuilding and rerunning passes.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpass. No title, console or Windows run.After merging upstream main
04cdd527604d521845afc58f9374afb92ff85f76, rebuilt the same target with the same limits and reran the focused test: it passes. The feature code and test changes are identical to those used for the negative control above; only upstream updates and the debt inventory reconciliation were merged.After merging upstream main
151a2cb6e274f594a09c8a2ca42f44af2e5c40d8, rebuilt the same target with the same limits and reran the focused test: it passes. The feature code and test changes are identical to those used for the negative control above; only upstream updates and the debt inventory reconciliation were merged.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)Pull request closed