Preventing false positives with Leak Canary

2019-06-22 15:42发布

问题:

We observe a lot of false-positives with Leak Canary, ie., Leak Canary detects that there is a leak but later comes back with the message:

LeakCanary: * NO LEAK FOUND. 

I think this is because GC didn't claim the object in time. Is there anything that we could do to reduce these false positives ?