google / guava

Google core libraries for Java
Apache License 2.0
50.25k stars 10.91k forks source link

Use `@RetainedLocalRef` to keep J2ObjC from deallocating objects when the fields they were stored in are nulled out. #7484

Closed copybara-service[bot] closed 1 month ago

copybara-service[bot] commented 1 month ago

Use @RetainedLocalRef to keep J2ObjC from deallocating objects when the fields they were stored in are nulled out.

I put together this CL by looking for @LazyInit annotations, but I skipped ExecutionSequencer and SequentialExecutor, honestly mostly because they are complicated and not directly implicated in the problems we've heard about. I don't know if they're used much under J2ObjC.

RELNOTES=n/a