sync/atomic.CompareAndSwapInt64
standard libraryThe 4790th most-called standard-library function by production calls. Called 167 times across 45 modules; 123 of those run outside tests and generated code.
- prod calls
- 123
- non-test, non-generated
- all calls
- 167
- total callsites
- modules
- 45
- distinct callers
- in loop
- 29%
- of prod calls
- in tests
- 4%
- 6 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 CompareAndSwapInt64 from notable Go projects. Open one on the map to see what else it hammers.
- Grafana 14 11%
- CockroachDB 7 6%
- Kubernetes 5 4%
- Velero 2 2%
- InfluxDB 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 167, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
seaweedfs/seaweedfs @v0.0.0-20260805044234-3c549b33ab8d
in loop -
segmentio/kafka-go @v0.4.51
in loop - in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call CompareAndSwapInt64 most in this snapshot.
- github.com/bytedance/gopkg4024%
- github.com/grafana/k6138%
- go.k6.io/k6138%
- github.com/cockroachdb/cockroach85%
- github.com/seaweedfs/seaweedfs85%
siblings
More from sync/atomic
The other most-called functions in this package. See all →