sync/atomic.Pointer.Swap
standard libraryThe 5919th most-called standard-library method by production calls. Called 104 times across 40 modules; 100 of those run outside tests and generated code.
- prod calls
- 100
- non-test, non-generated
- all calls
- 104
- total callsites
- modules
- 40
- distinct callers
- in loop
- 4%
- of prod calls
- in tests
- 4%
- 4 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into Pointer.Swap from notable Go projects. Open one on the map to see what else it hammers.
- gRPC 16 16%
- Kubernetes 5 5%
- Tailscale 5 5%
- VictoriaMetrics 5 5%
- CockroachDB 4 4%
where it's called
Callsites in the wild
12 representative callsites of 104, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
-
tailscale.com @v1.102.2
cmd/containerboot/main.go:851
in loop -
-
cilium/statedb @v0.8.3
-
cockroachdb/pebble/v2 @v2.1.6
-
-
gitea.dev @v1.27.1
modules/git/catfile_batch_reader.go:31
-
-
SAP/go-hdb @v1.17.3
-
top callers
The modules that reach for it
The modules that call Pointer.Swap most in this snapshot.
- github.com/grpc/grpc-go88%
- google.golang.org/grpc88%
- tailscale.com77%
- github.com/vitessio/vitess66%
- maunium.net/go/mautrix66%
siblings
More from sync/atomic
The other most-called members in this package. See all →