[thread-safety] make Pool subclasses return ownership

Reviewed By: peterogithub

Differential Revision: D5452925

fbshipit-source-id: f450ce6
master
Sam Blackshear 7 years ago committed by Facebook Github Bot
parent acb0650e96
commit 5784357322

@ -370,7 +370,9 @@ module TransferFunctions (CFG : ProcCfg.S) = struct
| ("android.app.Activity" | "android.view.View"), "findViewById"
-> (* assume findViewById creates fresh View's (note: not always true) *)
true
| "android.support.v4.util.Pools$Pool", "acquire"
| ( ( "android.support.v4.util.Pools$Pool" | "android.support.v4.util.Pools$SimplePool"
| "android.support.v4.util.Pools$SynchronizedPool" )
, "acquire" )
-> (* a pool should own all of its objects *)
true
| _

Loading…
Cancel
Save