~/talk

Nuking Nasty Memory Leaks

Talkat Devoxx US 2017 · 2017-03-21..03-23· [android]
slides:none on file

LeakCanary automatically triggers a heap dump when an Activity should be collected, parses it (MAT fork) and shows the shortest path to GC roots so the leaking field is obvious. Examples: a singleton-registered ActivityLifecycleCallback keeps a View hierarchy alive; a Runnable posted to a View ends up in a ThreadLocal RunQueue and never drains; Picasso cancels the wrong Picasso instance so the Target stays in its map. Fixes: unregister callbacks or remove queued runnables and cancel on the correct Picasso instance; the tool and workflow reliably surface actionable leaks.

AI-written summary · about

  1. 0:00Start
  2. 0:58Reasons for out of Memory Errors
  3. 3:45A Leak Trace
  4. 5:54Roomba the Garbage Collector
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.