Race Detector

Noun · Development

Definitions

  1. A dynamic analysis tool that instruments memory accesses at runtime to detect data races — unsynchronized concurrent reads and writes to the same variable. Go's built-in race detector (go run -race) uses the ThreadSanitizer algorithm and is the most widely known example, though similar tools exist for C/C++ and Rust.

    In plain English: A tool that watches your program while it runs and warns you when two things try to use the same data at the same time without proper coordination.

    Example: "CI runs all tests with -race enabled — it caught a map write race in the connection pool that only showed up under load."

Related Terms