~/talk

Android memory tools and best practices

Talkat Google for Games Developer Summit 2020 · on Monday, 2020-03-23· [android]
links:none on file
slides:none on file

Android memory management details, concrete tools and actionable steps: use Native Memory Profiler (stack traces of malloc/free) to find native leaks and missing deallocations and run malloc/free instead of custom mmap pools; use heapprofd to compare 32‑bit vs 64‑bit sizes (Tencent finds structure growth of ~10 MB after pointer doubling); detect pointer bugs with Hardware ASan (Android 10+, Pixel flash an AOSP ASan image, disable Play Services, build 64‑bit with modified build.gradle/CMakeLists), and watch OnTrimMemory/adb bugreport for lowmemorykiller kills.

AI-written summary · about

  1. 0:00Android memory management
  2. 0:48Low memory handling tips
  3. 1:46Native memory profiling
  4. 3:25Case study: PUBG Mobile
  5. 4:20Hardware address sanitizer
  6. 5:44Implementing hardware ASan
~/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.