Descriptionandroid: Switch CleanupReference to PhantomReference
Again. This time due to correctness. Want to experiment on beta to see
how big the impact is. Quoting from the comment in the CL:
NOTE Using PhantonReference instead of WeakReference is required for correctness.
WeakReferences are enqueued before finalizers are called, and finalizers can
resurrect the referent object. PhantomReference does delay clean up more compared
to WeakReference.
BUG=618807
Committed: https://crrev.com/630d88124d2e5a3fda6b9fd25d06eaa1af403fca
Cr-Commit-Position: refs/heads/master@{#411417}
Patch Set 1 #
Messages
Total messages: 17 (10 generated)
|