feat(libwebrtc): implement the webrtc::SmoothingFilterImpl destructor #15272
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15272"
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 alvaroelpob on 2026-11-02T22:35:31Z.
What
Implements the
webrtc::SmoothingFilterImpldestructor in libwebrtc, which threw and was declared without parameters.The module's WebRTC revision lies between M127 and M134, as recorded in the debt file.
smoothing_filter.cc(M127, M134) defines it= defaultat both. The filter's members insmoothing_filter.h(init time, factor and constant, an optional end time, the last sample, alpha, state and last state time) are trivially destructible, so it writes nothing. The destructor is virtual, so a compiled one would also point the object's vtable at the class's own on the way out, which no caller can observe after destruction.src/SmoothingFilterImpl.cppstarts with that file's WebRTC notice and the BSD licence. It removes 1 export from the inventory.Tested
Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.guest_webrtc_smoothing_filtertest: destroying 64 bytes filled with 0xA5 leaves every byte as it was.ctest -j16on head 8d9706d5ef: 3596/3596 pass.check_conventions.py --base upstream/mainpasses.pr_overlap.py: no open pull request implements these functions. The shared lines are the pending-export count indocs/dev/debt/libwebrtc.mdand the source, test and declaration lists inCMakeLists.txtandApi.hpp.main4f41f4c375, head e6c628b9fb, to resolve the conflicts on the sharedCMakeLists.txt,Export.cppand debt-file lines; both sides are kept and the debt count is recomputed fromExport.cpp. Full build andctest -j16: 3796/3800 pass;guest_sce_net,guest_poll,guest_select_waitandguest_memoryfailed under that load, pass when run alone, andmain4f41f4c375passes all 3799 with-j16on the same machine.check_conventions.py --base upstream/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-03T23:51:36Z.
Review: APPROVED
@alvaroelpob approved at
e6c628b9fb.What I ran: this head merged onto
main(merge0826dae22e), Windows 11, WinLibs GCC, Release.guest_webrtc_smoothing_filterandpublic_headerspass (2 of 2).tools/check_conventions.py --base upstream/main --headon this head: all checks pass.throwat the top of the new body incore/libs/prx/libwebrtc/src/SmoothingFilterImpl.cpp,guest_webrtc_smoothing_filterfails (1 of 1). So the test checks the change.Firmware: this also settles what the debt entry leaves open. In 13.42
system/common/lib/libwebrtc.sprx(sha256d59d0caf6967329b39201a2a0bd6df7b994516f21701b9801908db6735ae5314),_ZN6webrtc19SmoothingFilterImplD1Ev(2ck4jCN8Qcc) is a loneretat0x41fcd0. That's read from disassembly, not run. So the empty body matches the console module, not only upstream. If you like, the debt entry can say so instead of "nothing is checked on the console".Merge order: this PR and its siblings (#15266–#15269 and #15272) each change the same
351 exportsline indocs/dev/debt/libwebrtc.md, and so does my #15609. Whichever lands later only needs that count rebased. I haven't tried merging the siblings into each other.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-04T00:08:35Z.
Review: APPROVED
Reviewed — approved
The
webrtc::SmoothingFilterImpldestructor is now a no-op taking the object pointer, which matches upstream's= defaultdestructor. The merged tree builds, the new test andpublic_headerspass, the new test fails against the old throwing export, and the debt count is consistent withExport.cpp.What I ran
Head
e6c628b9fb825ac88da151699fa495cbff91353fmerged intomain1c8c0efc8c41314402e6966da5bef6ea3d639d10(merged tree441c096a3199b2c1f95b36695a97c164a859c030). Machine: Debian 13 VM, Intel Xeon Gold 6136, GCC 14.2.0, Release, Ninja.Results
git diff --checkcheck_conventions.pyunwrap_self_…inherits_the_destination_directory_group) also fails onmainguest_webrtc_smoothing_filter+public_headers*(66 tests)NotImplementedcalls inExport.cppat the merged tree, matching "350 exports" (mainhas 351)Api.hpp:353; the oldExport.cppstub is removedNegative control output
Negative control
I restored
Export.cppandInclude/Api.hppfrommainand emptiedsrc/SmoothingFilterImpl.cpp:(void)declaration ("too many arguments").libwebrtcwithmain's throwing export was then run under the previously linked test executable. The test aborts with_ZN6webrtc19SmoothingFilterImplD1Ev_nid_postfix not implemented.So the test catches a missing implementation. I then restored the merged files and rebuilt; the test passes again, and
git status --porcelainis empty.This agrees with BunnyFl's earlier
throwmutation.Findings
Blocking
None.
Non-blocking
docs/dev/debt/libwebrtc.md:24: the entry says "nothing is checked on the console". BunnyFl's review reports that the 13.42 firmware's_ZN6webrtc19SmoothingFilterImplD1Evis a loneret, read from disassembly. I can't confirm that (no firmware here). If it holds, the entry could name that evidence, or be cut to what is still open, as CONTRIBUTING.md asks for closed gaps.Not verified