sync.Mutex.Unlock
standard libraryThe 24th most-called standard-library method by production calls. Called 63,661 times across 985 modules; 48,293 of those run outside tests and generated code.
- prod calls
- 48,293
- non-test, non-generated
- all calls
- 63,661
- total callsites
- modules
- 985
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 20%
- 12,663 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 method87%A method on a value whose type is known exactly.
- Embedded method13%Reached through an embedded type.
estimate
Estimated relative cost
Roughly 0.01× the estimated relative cost of fmt.Sprintf . Benchmarked at 3.89 ns/op × 48,293 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Mutex.Unlock from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 3,144 7%
- Docker 2,062 4%
- Grafana 1,148 2%
- gRPC 1,074 2%
- CockroachDB 989 2%
where it's called
Callsites in the wild
12 representative callsites of 63,661, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
go/bufplugin @v0.10.0
internal/pkg/thread/thread.go:79
in loop -
caddyserver/certmagic @v0.25.4
in loop -
charm.land/fantasy @v0.40.0
agent.go:1685
in loop - in loop
-
go/storage @v1.64.0
pcu.go:302
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
docker/libnetwork @v0.5.6
in loop
top callers
The modules that reach for it
The modules that call Mutex.Unlock most in this snapshot.
- github.com/sourcegraph/sourcegraph-public-snapshot3,6396%
- tailscale.com1,6263%
- github.com/kubernetes/kubernetes1,5752%
- vitess.io/vitess1,5002%
- github.com/vitessio/vitess1,4992%
siblings
More from sync
The other most-called members in this package. See all →