~/talk

Compiler Sanitizers for Fun and Profit

Talkat iOS Conf SG 2017 · 2017-10-19..10-20· [compilers-and-language-design]
slides:none on file

Enables the thread sanitizer in Xcode or via -fsanitize=thread and the compiler injects runtime checks (IR-level calls like TSan_read8/TSan_write8) before every memory access; TSan records thread, caller PC, address and size, keeps a recent-access buffer, and reports a data race when the same address is accessed by different threads with at least one write. It runs only on 64-bit simulator (not device), costs ~2–20× CPU and ~5–10× memory, and can warn about races that haven’t yet manifested.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Practical Parts
  3. 3:04Problem Statement
  4. 6:26Threat Sanitizer
  5. 8:58Thread Sanitizer
  6. 12:14Testing
  7. 15:08Sanitizer Parameters
  8. 16:04Race Conditions
  9. 17:21Uncertainty
  10. 18:19Thread Sanitizers
  11. 19:53Troubleshooting
  12. 21:51Collect the right data
  13. 22:45Go one more level down
~/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.