~/talk

Speaking of Leaking

Talkat 360|AnDev 2019 · 2019-07-18..07-19· [android]
links:none on file
slides:none on file

Shows a real memory leak: a static HashSet holds Activity contexts and a 7.72 MB bitmap so rotating the screen accumulates Activity instances until the app hits ~1 GB and the kernel kills it. Demonstrates detection with LeakCanary and the Android memory profiler, explains GC roots and generational/compacting collectors, and reproduces leaks via anonymous inner classes and AsyncTask. Presents fixes: use application context or weak references, cancel work, clean up RxJava disposables, and prefer lifecycle-aware LiveData observe(owner) to avoid forgotten observers.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24Background
  3. 3:55RAM Storage
  4. 5:08Stack vs Heap Memory
  5. 6:52Linux Kernel
  6. 7:43Memory Pressure
  7. 15:48Android L Garbage Collection
  8. 18:29Android Framework
  9. 20:03Memory Leaks
  10. 22:14Memory Leak Example
  11. 31:43Fixing a Memory Leak
  12. 40:30Summary
~/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.