fix(appcontent): match the download1 quota atomic type #16797
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16797"
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 wanderingbug on 2026-11-07T16:48:35Z.
compare_exchange_weak requires a reference to the atomic value type. download1QuotaBytes is uint64_t, and the expected value was a size_t. Those are different types on Darwin even though both are 64 bits.
What
Open #16801 (
fix/macos-test-compile,38bddbff44) edits onlyResourceRequest.cpp,RtcpTransportFeedback.cpp, andGuestCesGbSetters.cpp:<initializer_list>andResourceRequestBasevalue initialization. None of those symbols are in this pull request.The expected value for
download1QuotaBytes.compare_exchange_weakisstd::uint64_t, matchingstd::atomic<std::uint64_t>. The download2 quota path already used that type.Tested
The combined
libsbuild compiledlibSceAppContentwith the overlay. There is no separate quota behavior result. Publishedd21846bfe6is the same patch as testede074d9c7, replayed cleanly ontodd00a9c54e. That published SHA was not rebuilt on the Mac. Not tested on a second machine; no game tested.Checklist
main; no other open PR implements the same functions. Unchecked: parent isdd00a9c54e, and upstreammainis nowdaad891ea6. #16801 does not implement these functions. Other open pull requests were not fully scanned..mdfiles or images added to the repository3rdparty/change.Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T22:09:28Z.
Review: COMMENTED
Read
d21846bfe6.download1QuotaBytesisstd::atomic<std::uint64_t>(Export.cpp:65), socompare_exchange_weakneeds astd::uint64_t&, whichcurrentnow is.sceAppContentDownload2Expandalready usedstd::uint64_t currentfordownload2QuotaBytes, so the two now match, and no othersize_texpected value remains in the file. Thesize > currentcomparison is unchanged on Linux and Windows, where the types are identical. Looks right.AI-assisted: yes.
Pull request closed