Repository navigation
refactor(libobs): extract output weak-handle lifetime verbatim (Refs #4768) - #4824
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 13, 2026 06:46
zackees
enabled auto-merge
November 13, 2026 06:46
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4768
This C-only prerequisite characterizes and extracts the five output weak-handle lifetime functions into obs-output-weak-lifetime.c.h with a dedicated unity group. It pins NULL behavior, exact strong/weak counts, final weak freeing, live/expired promotion, identity after expiry, and output destruction while weak owners survive. obs_output_get_ref and shared atomics remain outside the extracted unit. The Rust swap remains follow-up #4778.
The producer passed the new C characterization and unchanged output-enumeration test against hybrid libobs and libobs-c-reference before and after extraction, with matching exports. GCC and strict Clang compilation, 277 native_build contracts, graph/build-group checks, formatting, and full lint passed on the original branch. All five moved definitions were compared byte-for-byte. This uses characterization before extraction; Rust RED/GREEN and differential coverage belong to the later swap. Public headers, existing C tests, the WebSocket plugin, and public behavior are preserved.
Rebased cleanly onto current master after the first four extraction prerequisites merged. The characterization and moved definitions are unchanged. Landing validation passed: soldr formatting, all 275 native_build tests plus two child probes, and full lint. Publication uses ./push and its pinned client proof attempt; the required hosted gate and selected merge-queue lanes decide admission.
The complete client proof attempt passed Linux x64 Clippy/Dylint and Linux arm64 Clippy. soldr then refused to build the unavailable nightly-2026-05-28 Dylint driver from source under clud, so no complete proof was attested. ./push published through its ordinary PR CI fallback; the existing toolchains and guard remain unchanged. Full local lint passed in 100.4 seconds.