Skip to content
Opensource internals
  • Posts

Race detector

How Go's Race Detector Works: Shadow Memory and Vector Clocks

Oct 21, 2026 19 min read Jay Hubbert

The Go race detector is LLVM’s ThreadSanitizer shipped as a prebuilt blob: the compiler inserts read and write hooks, the runtime maps shadow memory for the heap and globals, and …

GoInternalsRace detectorConcurrencyThreadsanitizer

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·