Skip to content

Move to using objc_externally_retained to elide unneeded calls to retain/release in j2objc protobuf code.#2637

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_841790480
Open

Move to using objc_externally_retained to elide unneeded calls to retain/release in j2objc protobuf code.#2637
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_841790480

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Dec 11, 2025

Move to using objc_externally_retained to elide unneeded calls to retain/release in j2objc protobuf code.

I believe all of the C code that is wrapped in these blocks can assume that the objects being passed in are going to be held externally and will live for the lifetime of the call.

https://clang.llvm.org/docs/AutomaticReferenceCounting.html#externally-retained-variables

…etain/release in j2objc protobuf code.

I believe all of the C code that is wrapped in these blocks can assume that the objects being passed in are going to be held externally and will live for the lifetime of the call.

https://clang.llvm.org/docs/AutomaticReferenceCounting.html#externally-retained-variables

PiperOrigin-RevId: 841790480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants