sync/atomic.CompareAndSwapInt32
standard libraryThe 1090th most-called standard-library function by production calls. Called 647 times across 91 modules; 595 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (592 → 595)
- prod calls
- 595
- non-test, non-generated
- all calls
- 647
- total callsites
- modules
- 91
- distinct callers
- in loop
- 5%
- of prod calls
- in tests
- 8%
- 49 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into CompareAndSwapInt32 from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 10 2%
- Vault 6 1%
- MinIO 5 <1%
- NATS 5 <1%
- Uber Go 5 <1%
where it's called
Callsites in the wild
12 representative callsites of 647, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
dgraph-io/badger @v1.6.2
in loop - in loop
-
ethereum/go-ethereum @v1.17.5
in loop -
google/gvisor @v0.0.0-20260919054224-26f3455a4cb9
in loop -
junegunn/fzf @v0.74.4
in loop - in loop
-
sagernet/gvisor @v0.0.0-20260727.0-sing-box-mod.1
in loop -
sagernet/smux @v1.5.50-sing-box-mod.1
in loop -
semaphoreui/semaphore @v0.0.0-20260921051320-e95560fd81a6
in loop -
tinode/chat @v0.25.3
in loop -
zmap/zcrypto @v0.0.0-20260919232836-751f288b7287
in loop
top callers
The modules that reach for it
The modules that call CompareAndSwapInt32 most in this snapshot.
- github.com/cadence-workflow/cadence11718%
- github.com/uber/cadence11718%
- github.com/temporalio/temporal9114%
- go.temporal.io/server9114%
- github.com/cloudwego/eino122%
siblings
More from sync/atomic
The other most-called functions in this package. See all →